@Test
  public void testPartionedRegionInitialization() throws RegionExistsException {
    String PRName = "testpartionedRegionInitialization";
    PartitionedRegionTestHelper.createPartionedRegion(PRName);

    Region root = (PartitionedRegionTestHelper
        .getExistingRegion(PartitionedRegionHelper.PR_ROOT_REGION_NAME));
    if (root == null) {
      fail("testpartionedRegionInitialization() - the "
          + PartitionedRegionHelper.PR_ROOT_REGION_NAME + " do not exists");
    }
    RegionAttributes regionAttribs = root.getAttributes();
    Scope scope = regionAttribs.getScope();
    if (!scope.isDistributedAck()) {
      fail("testpartionedRegionInitialization() - the "
          + PartitionedRegionHelper.PR_ROOT_REGION_NAME + " scope is not distributed_ack");
    }
    assertEquals(DataPolicy.REPLICATE, regionAttribs.getDataPolicy());

  }
Test for initialization of PartitionedRegion. Following are tested for the PartitionedRegion:
<p>
(1) Test for Root == null
<p>
(2) Test for Root region scope is DIST_ACK
<p>
(3) Test if MirrorType.NONE for root region.
<p>
(4) Test if PARTITIONED_REGION_CONFIG_NAME exist and isDistributedAck and the mirror type is
MirrorType.KEYS_VALUES.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/PartitionedRegionCreationJUnitTest.java