@Test
  public void localMaxMemoryShouldDefaultToNonZero() throws Exception {
    vm0.invoke(() -> {
      Cache cache = getCache();
      RegionFactory<String, String> regionFactory =
          cache.createRegionFactory(RegionShortcut.PARTITION);
      Region<String, String> region = regionFactory.create(regionName);

      assertThat(region.getAttributes().getPartitionAttributes().getLocalMaxMemory())
          .isNotEqualTo(0);
    });

    destroyPartitionedRegion(vm0);
  }
This is a PartitionedRegion test for scope = D_ACK. 4 VMs are used to create the PR with and
without(Only Accessor) the DataStore.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionAPIDUnitTest.java