private void givenDistributedSubRegion(final String parentRegionName,
      final String childRegionName) {
    Region parentRegion = getCache().getRegion(parentRegionName);
    assertThat(parentRegion).isNotNull();

    RegionFactory regionFactory = getCache().createRegionFactory(RegionShortcut.REPLICATE);

    Region childRegion = regionFactory.createSubregion(parentRegion, childRegionName);
    assertThat(childRegion).isNotNull();
  }
Verifies creation of partitioned region and distributed region with same name.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionWithSameNameDUnitTest.java