@Test
  public void testSetValueWriteThrough() {
    // Adapted from a bug report by Eric Zoerner
    CustomEntryConcurrentHashMap map = new CustomEntryConcurrentHashMap(2, 5.0f, 1);
    assertTrue(map.isEmpty());
    for (int i = 0; i < 20; i++) {
      map.put(i, i);
    }
    assertFalse(map.isEmpty());
    Map.Entry entry1 = (Map.Entry) map.entrySet().iterator().next();

    // assert that entry1 is not 16
    assertTrue("entry is 16, test not valid", !entry1.getKey().equals(16));

    // remove 16 (a different key) from map
    // which just happens to cause entry1 to be cloned in map
    map.remove(16);
    entry1.setValue("XYZ");
    assertTrue(map.containsValue("XYZ")); // fails
  }
SetValue of an EntrySet entry sets value in the map.
geode-core/src/integrationTest/java/org/apache/geode/internal/util/concurrent/cm/ConcurrentHashMapJUnitTest.java