private void changeAlertLevel(AlertLevel alertLevel) throws Exception {
    distributedSystemMXBean.changeAlertLevel(alertLevel.name());

    if (alertLevel == NONE) {
      await().until(() -> !alertingService.hasAlertListener(distributedMember, alertLevel));
    } else {
      await().until(() -> alertingService.hasAlertListener(distributedMember, alertLevel));
    }
  }
Fails due to GEODE-5923: JMX manager receives local Alerts only for the default AlertLevel
geode-core/src/integrationTest/java/org/apache/geode/management/DistributedSystemMXBeanIntegrationTest.java