### Question:
Pair { public B second() { return second; } Pair(A first, B second); A first(); B second(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }### Answer:
@Test public void second() { Pair pair = new Pair<>(10, "beers"); assertEquals("beers", pair.second()); }