@Test
  public void testMemberMBeanOperations() throws Exception {
    int i = 1;
    for (VM memberVM : memberVMs) {
      Properties props = new Properties();
      props.setProperty(LOG_FILE, temporaryFolder
          .newFile(testName.getMethodName() + "-VM" + i + ".log").getAbsolutePath());
      managementTestRule.createMember(memberVM, props);
      i++;
    }

    managementTestRule.createManagers();

    for (VM memberVM : memberVMs) {
      String logMessage = "This line should be in the log";
      memberVM.invoke(() -> managementTestRule.getCache().getLogger().info(logMessage));

      String log = memberVM.invoke(this::fetchLog);
      assertThat(log).isNotNull();
      assertThat(log).contains(logMessage);

      JVMMetrics jvmMetrics = memberVM.invoke(this::fetchJVMMetrics);

      OSMetrics osMetrics = memberVM.invoke(this::fetchOSMetrics);

      // TODO: need assertions

      memberVM.invoke(this::shutDownMember);
    }

    managerVM.invoke(this::verifyNoMembers);
  }
Tests each and every operation that is defined on the MemberMXBean
geode-core/src/distributedTest/java/org/apache/geode/management/CacheManagementDUnitTest.java