@Test
  public void replicateAllowedWithPersistentReplicates() {
    vm1.invoke(() -> {
      getCache().createRegionFactory(REPLICATE_PERSISTENT).create(partitionedRegionName);
    });
    vm2.invoke(() -> assertThatCode(
        () -> getCache().createRegionFactory(REPLICATE).create(partitionedRegionName))
            .doesNotThrowAnyException());
    vm3.invoke(() -> assertThatCode(
        () -> getCache().createRegionFactory(REPLICATE_PERSISTENT).create(partitionedRegionName))
            .doesNotThrowAnyException());
  }
Test to make sure that primaries are rebalanced after recovering from disk.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistentPartitionedRegionDistributedTest.java