private void createPartitionedSubregion(final VM vm) {
    vm.invoke(() -> {
      Cache cache = getCache();
      Region<Integer, Integer> parentRegion =
          cache.getRegion(SEPARATOR + PARENT_REGION_NAME + SEPARATOR + CHILD_REGION_NAME);

      RegionFactory<Integer, Integer> regionFactory =
          cache.createRegionFactory(RegionShortcut.PARTITION);
      regionFactory.setPartitionAttributes(createPartitionAttributesFactory().create());

      regionFactory.createSubregion(parentRegion, PARTITIONED_REGION_NAME);
    });
  }
Verifies that destroyRegion, localDestroyRegion and close work properly when PartitionedRegion is
a subregion.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionAsSubregionDUnitTest.java