private void recreatePartitionedRegion(final VM vm) {
    vm.invoke(() -> {
      Cache cache = getCache();

      Region<Integer, Integer> region = cache.getRegion(SEPARATOR + PARENT_REGION_NAME + SEPARATOR
          + CHILD_REGION_NAME + SEPARATOR + PARTITIONED_REGION_NAME);
      assertThat(region).isNull();

      Region<Integer, Integer> parentRegion = cache.getRegion(SEPARATOR + PARENT_REGION_NAME);

      // TODO:
      Region<Integer, Integer> childRegion =
          parentRegion.createSubregion(CHILD_REGION_NAME, parentRegion.getAttributes());

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

      region = regionFactory.createSubregion(childRegion, PARTITIONED_REGION_NAME);
      assertThat(region).isNotNull();
    });
  }
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