Pair { public F getFirst() { return first; } Pair(final F first, final S second); F getFirst(); S getSecond(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }
@Test public void testGetFirst() { assertEquals(o1, new Pair<>(o1, null).getFirst()); }