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