@Test
  public void testNameWithPartitionRegionFirstOnSameVM() {
    vm0.invoke(() -> givenPartitionedRegion(regionName));

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