@Test(dataProvider = "factory") public void test_sizeElements(String first, double second) { ObjDoublePair<String> test = ObjDoublePair.of(first, second); assertEquals(test.size(), 2); assertEquals(test.elements(), ImmutableList.of(first, second)); }