@Before
  public void setUp() throws Exception {
    alertMessage = "Alerting in " + testName.getMethodName();
    name = "Manager in " + testName.getMethodName();

    String startLocator = getServerHostName() + "[" + getRandomAvailableTCPPort() + "]";

    Properties config = getDistributedSystemProperties();
    config.setProperty(NAME, name);
    config.setProperty(START_LOCATOR, startLocator);
    config.setProperty(JMX_MANAGER, "true");
    config.setProperty(JMX_MANAGER_START, "true");
    config.setProperty(JMX_MANAGER_PORT, "0");
    config.setProperty(HTTP_SERVICE_PORT, "0");

    cache = (InternalCache) new CacheFactory(config).create();
    distributedMember = cache.getDistributionManager().getId();
    alertingService = cache.getInternalDistributedSystem().getAlertingService();

    notificationListener = spy(NotificationListener.class);
    getPlatformMBeanServer().addNotificationListener(getDistributedSystemName(),
        notificationListener, SYSTEM_ALERT_FILTER, null);

    distributedSystemMXBean = newMXBeanProxy(getPlatformMBeanServer(),
        getDistributedSystemName(), DistributedSystemMXBean.class);
  }
Integration tests for {@link DistributedSystemMXBean} with local {@link DistributedSystem}
connection.

<p>
TODO:GEODE-5923: write more tests after fixing GEODE-5923
geode-core/src/integrationTest/java/org/apache/geode/management/DistributedSystemMXBeanIntegrationTest.java