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