Tuples { public static <A, B> Pair<A, B> pair(A a, B b) { return new Pair<A, B>(a, b); }  static Pair<A, B> pair(A a, B b); static Pair<A, B> tuple(A a, B b); static Tuple3<A, B, C> tuple(A a, B b, C c); static Tuple4<A, B, C, D> tuple(A a, B b, C c, D d); static Tuple5<A, B, C, D, E> tuple(A a, B b, C c, D d, E e);  }
@Test public void testPair() { Pair<String, Integer> pair = Tuples.pair("one", 1); assertEquals("(one, 1)", pair.toString()); assertEquals("one", pair.a); assertEquals(1, pair.b.intValue()); ObjectTester.assertEqual(pair, pair, Tuples.pair("one", 1)); ObjectTester.assertNotEqual(pair, Tuples.pair("one", 2), Tuples.pair("two", 1), "abc"); }