@Test
  public void disableJmxPreventsCreationOfMemberMXBean() {
    ManagementService managementService = ManagementService.getManagementService(cache);

    MemberMXBean result = managementService.getMemberMXBean();

    assertThat(result).isNull();
  }
Integration test to ensure that Geode does not create MBeans when
{@link ConfigurationProperties#DISABLE_JMX} is set to true.
geode-core/src/integrationTest/java/org/apache/geode/management/DisableJmxIntegrationTest.java