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

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

    InternalLocator internalLocator = (InternalLocator) locator;

    // the locator should always install a SharedConfigurationStatusRequest handler
    boolean hasHandler = internalLocator.hasHandlerForClass(SharedConfigurationStatusRequest.class);
    assertThat(hasHandler).isTrue();
  }
Fix: if jmx-manager-start is true in a locator then gfsh connect will fail
geode-core/src/integrationTest/java/org/apache/geode/distributed/LocatorIntegrationTest.java