@Test
public void testEqualsObject() {

    MapEntry<String, String> entry = new MapEntry<String, String>("key", "value", false);
    assertFalse(entry.equals(null));
    assertFalse(entry.equals("whatever"));
    MapEntry<String, String> entry2 = new MapEntry<String, String>("key", "value", false);
    assertTrue(entry.equals(entry2));
    entry2 = new MapEntry<String, String>("key2", "value", false);
    assertFalse(entry.equals(entry2));
    entry2 = new MapEntry<String, String>("key", "value2", false);
    assertFalse(entry.equals(entry2));
    entry = new MapEntry<String, String>(null, "value", false);
    entry2 = new MapEntry<String, String>(null, "value", false);
    assertTrue(entry.equals(entry2));
    entry = new MapEntry<String, String>("key", null, false);
    entry2 = new MapEntry<String, String>("key", null, false);
    assertTrue(entry.equals(entry2));
}