public void flushForTesting() {
    if (fp != null) {
      fp.unpause();
      fp = null;
    }
    forceFlush();
  }
After tests call this method they must call flushForTesting.
geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreImpl.java