@Test(dataProvider = "factory") public void test_ofPair(String first, double second) { Pair<String, Double> pair = Pair.of(first, second); ObjDoublePair<String> test = ObjDoublePair.ofPair(pair); assertEquals(test.getFirst(), first); assertEquals(test.getSecond(), second, TOLERANCE); }