public static void flushMethod() {
    try {
      ((LocalRegion) region).getDiskRegion().forceFlush();
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
Force flush the data to disk
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DiskRegByteArrayDUnitTest.java