@Test
  public void doesNotStartJmxManagerByDefault() throws Exception {
    Properties configProperties = new Properties();
    configProperties.setProperty(ENABLE_CLUSTER_CONFIGURATION, "false");
    configProperties.setProperty(HTTP_SERVICE_PORT, "0");
    configProperties.setProperty(LOG_FILE, "");
    configProperties.setProperty(MCAST_PORT, "0");

    locator = Locator.startLocatorAndDS(port, null, configProperties);

    InternalLocator internalLocator = (InternalLocator) locator;
    InternalCache cache = internalLocator.getCache();
    SystemManagementService managementService =
        (SystemManagementService) ManagementService.getManagementService(cache);

    boolean isManager = managementService.isManager();
    assertThat(isManager).isFalse();
  }
Validates that Locator.startLocatorAndDS does not start a JMX Manager by default. Only the
LocatorLauncher starts one by default.
geode-core/src/integrationTest/java/org/apache/geode/distributed/LocatorIntegrationTest.java