@Test
  public void testWithPartitionedRegionAsParentRegionAndPartitionedSubRegion() {
    vm0.invoke(() -> givenPartitionedRegion(parentRegionName));

    vm0.invoke(() -> validateCreatePartitionedSubRegionThrows(parentRegionName, childRegionName,
        UnsupportedOperationException.class));
  }
Verifies creation of partitioned region and distributed region with same name.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionWithSameNameDUnitTest.java