### Question:
Pair { public Pair(T1 one, T2 two) { this.one = one; this.two = two; } Pair(T1 one, T2 two); static Pair<T1, T2> of(T1 one, T2 two); final T1 one; final T2 two; }### Answer:
@Test public void testPair() { Pair<String, Integer> p = Pair.of("one", new Integer(1)); assertEquals("one", p.one); assertEquals(new Integer(1), p.two); }