@Test
public void testEquals() {

  final Pair<String, String> pair = new Pair<String, String>("Hello", "World");
  final Object[][] testParameters = new Object[][] {{new String(), false},
      {new HashMap<String, String>(), false}, {new Pair<String, String>("Hello", "World"), true}};
  for (final Object[] testParameter : testParameters) {
    boolean expected = (Boolean) testParameter[1];
    Object obj = (Object) testParameter[0];
    assertEquals(expected, pair.equals(obj));
  }
}