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