@Test
  public void testOSAttributes() {
    MemberMXBean memberMXBean = getSystemManagementService().getMemberMXBean();

    await().untilAsserted(() -> assertThat(memberMXBean.getMemberUpTime()).isGreaterThan(0));

    assertThat(memberMXBean.getProcessId()).isEqualTo(identifyPidAsUnchecked());
    assertThat(memberMXBean.getClassPath()).isEqualTo(getRuntimeMXBean().getClassPath());
    assertThat(memberMXBean.getCurrentTime()).isGreaterThan(0);

    assertThat(memberMXBean.getUsedMemory()).isGreaterThan(10);
    assertThat(memberMXBean.getCurrentHeapSize()).isGreaterThan(10);

    assertThat(memberMXBean.getFreeMemory()).isGreaterThan(0);
    assertThat(memberMXBean.getFreeHeapSize()).isGreaterThan(0);

    assertThat(memberMXBean.getMaxMemory()).isEqualTo(getHeapMemoryUsageMegabytes());
    assertThat(memberMXBean.getMaximumHeapSize()).isEqualTo(getHeapMemoryUsageMegabytes());

    assertThat(memberMXBean.fetchJvmThreads().length).isGreaterThan(0);
  }
Distributed tests for {@link MemberMXBean} attributes.
geode-core/src/distributedTest/java/org/apache/geode/management/MemberMXBeanAttributesDistributedTest.java