### Question:
Pair { public Pair(F first, S second) { super(); this.first = first; this.second = second; } Pair(F first, S second); F getFirst(); S getSecond(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testPair() { Pair<Integer, String> pair = new Pair<Integer, String>(1, "one"); assertEquals(new Integer(1), pair.getFirst()); assertEquals("one", pair.getSecond()); }