private PartitionAttributesFactory<Integer, Integer> createPartitionAttributesFactory() {
    PartitionAttributesFactory<Integer, Integer> partitionAttributesFactory =
        new PartitionAttributesFactory<>();
    partitionAttributesFactory.setLocalMaxMemory(LOCAL_MAX_MEMORY_MB);
    partitionAttributesFactory.setRedundantCopies(REDUNDANT_COPIES);
    partitionAttributesFactory.setTotalNumBuckets(TOTAL_NUM_BUCKETS);
    return partitionAttributesFactory;
  }
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