@Test
  public void closeDiskStoreDuringCreate() throws InterruptedException {
    testRegion.getAttributesMutator().setCacheWriter(blockingWriter);
    Future<Void> asyncCreate = CompletableFuture.runAsync(() -> testRegion.put("newKey", "value"));
    blockingWriter.awaitCreateInProgress();
    cache.closeDiskStores();
    blockingWriter.allowCreates();
    assertThatThrownBy(asyncCreate::get).hasRootCauseInstanceOf(CacheClosedException.class)
        .hasMessageContaining("The disk store is closed");
  }
Tests the basic use cases for PR persistence.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistPRKRFIntegrationTest.java