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