### Question:
EntryUtil { static boolean equal(final Object obj, final Object key, final Object value) { if (!(obj instanceof Entry)) { return false; } final Entry<?, ?> entry = (Entry<?, ?>)obj; return key.equals(entry.getKey()) && value.equals(entry.getValue()); } private  EntryUtil();   }### Answer:
@Test public void testEqual() { final Object key = new Object(); final Object value = new Object(); assertFalse(EntryUtil.equal(null, key, value)); assertFalse(EntryUtil.equal(key, key, value)); final Entry<Object, Object> entry = new SimpleImmutableEntry<>(key, value); assertTrue(EntryUtil.equal(entry, key, value)); assertFalse(EntryUtil.equal(entry, value, value)); assertFalse(EntryUtil.equal(entry, key, key)); }