Pair { public S getSecond() { return second; } 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 testGetSecond() { assertEquals(o2, new Pair<>(null, o2).getSecond()); }