@Test
  public void testEquals() {
    CopyOnWriteHashMap map1 = map5();
    CopyOnWriteHashMap map2 = map5();
    assertEquals(map1, map2);
    assertEquals(map2, map1);
    map1.clear();
    assertFalse(map1.equals(map2));
    assertFalse(map2.equals(map1));
  }
Maps with same contents are equal
geode-core/src/integrationTest/java/org/apache/geode/internal/util/concurrent/CopyOnWriteHashMapJUnitTest.java