private void validateModification() {
    Collection entries = ((LocalRegion) region).entries.regionEntries();
    if (entries.size() != 1) {
      fail("expected size to be 1 but is not so");
    }
    RegionEntry entry = (RegionEntry) entries.iterator().next();
    DiskId id = ((DiskEntry) entry).getDiskId();
    Object obj = ((LocalRegion) region).getDiskRegion().get(id);
    if (!(obj.equals(2))) {
      fail("incorrect modification");
    }
  }
validate whether a modification of an entry was correctly done
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/ConflationJUnitTest.java