@Test
  public void testPartitionedRegionAttributes() {
    RegionFactory<Number, Number> regionFactory =
        getCache().createRegionFactory(PARTITION_REDUNDANT);

    regionFactory.create("testPRRegion1");
    regionFactory.create("testPRRegion2");
    regionFactory.create("testPRRegion3");

    Region<Number, Number> region1 = getCache().getRegion(SEPARATOR + "testPRRegion1");
    Region<Number, Number> region2 = getCache().getRegion(SEPARATOR + "testPRRegion2");
    Region<Number, Number> region3 = getCache().getRegion(SEPARATOR + "testPRRegion3");

    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.getPartitionRegionCount()).isEqualTo(3);
    assertThat(memberMXBean.getTotalBucketCount()).isEqualTo(339);
    assertThat(memberMXBean.getTotalPrimaryBucketCount()).isEqualTo(339);
  }
Distributed tests for {@link MemberMXBean} attributes.
geode-core/src/distributedTest/java/org/apache/geode/management/MemberMXBeanAttributesDistributedTest.java