@Test
public void testHashCode() {

    MapEntry<String, String> entry = new MapEntry<String, String>("key", "value", false);
    assertEquals("key".hashCode() ^ "value".hashCode(), entry.hashCode());
    entry = new MapEntry<String, String>(null, "value", false);
    assertEquals(0 ^ "value".hashCode(), entry.hashCode());
    entry = new MapEntry<String, String>("key", null, false);
    assertEquals("key".hashCode() ^ 0, entry.hashCode());
    entry = new MapEntry<String, String>(null, null, false);
    assertEquals(0 ^ 0, entry.hashCode());
}