@Test
  public void testPROverflow() throws Exception {
    accessor.invoke(() -> {
      Region<String, String> region = getCache().getRegion(uniqueName);
      for (int i = 1; i <= ENTRIES_COUNT + 1; i++) {
        region.put("key-" + i, "value-" + i);
      }

      PartitionedRegion partitionedRegion = (PartitionedRegion) region;
      assertThat(partitionedRegion.getDataStore()).isNull();
      assertThat(partitionedRegion.size()).isGreaterThanOrEqualTo(0);
    });

    datastore.invoke(() -> {
      PartitionedRegion partitionedRegion = (PartitionedRegion) getCache().getRegion(uniqueName);
      assertThat(getCache().getRegion(uniqueName).size()).isEqualTo(2);
      assertThat(partitionedRegion.getDataStore().getAllLocalBucketIds()).hasSize(2);
    });

    // datastore should create diskstore
    await()
        .untilAsserted(() -> assertThat(datastoreDiskDir.listFiles().length).isGreaterThan(0));

    // accessor should not create a diskstore
    assertThat(accessorDiskDir.listFiles()).hasSize(0);
  }
PR accessor configured for OverflowToDisk should not create a diskstore.

<p>
TRAC #42055: a pr accessor configured for OverflowToDisk fails during creation because of disk
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PRAccessorWithOverflowRegressionTest.java