@Test
  public void testReplicateRegionAttributes() {
    RegionFactory<Number, Number> regionFactory = getCache().createRegionFactory(REPLICATE);
    regionFactory.create("testRegion1");
    regionFactory.create("testRegion2");
    regionFactory.create("testRegion3");

    Region<Number, Number> region1 = getCache().getRegion(SEPARATOR + "testRegion1");
    regionFactory.createSubregion(region1, "testSubRegion1");

    Region<Number, Number> region2 = getCache().getRegion(SEPARATOR + "testRegion2");
    regionFactory.createSubregion(region2, "testSubRegion2");

    Region<Number, Number> region3 = getCache().getRegion(SEPARATOR + "testRegion3");
    regionFactory.createSubregion(region3, "testSubRegion3");

    for (int i = 1; i < 1 + 200; i++) {
      region1.put(i, i);
      region2.put(i, i);
      region3.put(i, i);
    }

    sampleStatistics();

    MemberMXBean memberMXBean = getSystemManagementService().getMemberMXBean();

    assertThat(memberMXBean.getTotalRegionCount()).isEqualTo(6);
    assertThat(memberMXBean.getTotalRegionEntryCount()).isEqualTo(600);
    assertThat(memberMXBean.getRootRegionNames()).hasSize(3);
    assertThat(memberMXBean.listRegions()).hasSize(6);
  }
Distributed tests for {@link MemberMXBean} attributes.
geode-core/src/distributedTest/java/org/apache/geode/management/MemberMXBeanAttributesDistributedTest.java