private void validateCreatePartitionedRegionSucceeds(final String regionName) {
    assertThatCode(() -> createPartitionedRegion(regionName, localMaxMemory, redundancy))
        .doesNotThrowAnyException();
  }
Verifies creation of partitioned region and distributed region with same name.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionWithSameNameDUnitTest.java