@Test
  @Override
  public void stopWithPidStopsLocatorProcess() {
    givenRunningLocator(withPort(0));

    Throwable thrown = catchThrowable(() -> new Builder()
        .setPid(getLocatorPid())
        .build()
        .stop());

    assertThat(thrown)
        .isInstanceOf(AttachAPINotFoundException.class);
  }
Integration tests for using {@code LocatorLauncher} as an application main in a forked JVM
without the Attach API.

Sets {@link ProcessControllerFactory#PROPERTY_DISABLE_ATTACH_API} to force
{@code LocatorLauncher} to use the FileProcessController implementation.

@since GemFire 8.0
geode-core/src/integrationTest/java/org/apache/geode/distributed/LocatorLauncherRemoteFileIntegrationTest.java