Pair { public static <K, V> Pair<K, V> create(K k, V v) { return new Pair<K, V>(k, v); } Pair(K k, V v);  Pair(Pair<? extends K, ? extends V> entry); K getKey(); V getValue(); K getFirst(); V getSecond(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Pair<K, V> create(K k, V v);  }
@Test public void testCreate() { final Pair<String, Integer> p1 = Pair.create("foo", 3); Assert.assertNotNull(p1); final Pair<String, Integer> p2 = new Pair<String, Integer>("foo", 3); Assert.assertEquals(p2, p1); }