@Test
  public void disableJmxPreventsRegistrationOfManagementListener() {
    InternalDistributedSystem system = cache.getInternalDistributedSystem();

    List<ResourceEventsListener> result = system.getResourceListeners();

    assertThat(result).isEmpty();
  }
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