@Test
  public void locatorProcessWithZeroJmxPortExitsWhenStopped() {
    givenRunningLocator(
        addJvmArgument("-D" + JMX_MANAGER + "=true")
            .addJvmArgument("-D" + JMX_MANAGER_START + "=true")
            .addJvmArgument("-D" + JMX_MANAGER_PORT + "=0"));

    new LocatorLauncher.Builder()
        .setWorkingDirectory(getWorkingDirectoryPath())
        .build()
        .stop();

    assertStopOf(getLocatorProcess());
  }
Regression tests for stopping a JMX Manager process launched with {@link LocatorLauncher}.

<p>
Confirms fix for <bold>Locator not stopping correctly if jmx-manager-port=0</bold>

<p>
Refactored from LocatorLauncherAssemblyIntegrationTest which used to be in geode-assembly.
geode-core/src/integrationTest/java/org/apache/geode/distributed/LocatorLauncherJmxManagerRemoteRegressionTest.java