@Test
  public void whenLocatorIsPresetThenItWillNotReadThePropertyFiles() {
    launcher = givenLocatorLauncher();

    assertThat(launcher.start().getStatus()).isEqualTo(ONLINE);
    LocatorLauncher locatorLauncher = spy(launcher);
    locatorLauncher.status();
    /*
     * We want to verify that no DistributedConfigImpl is constructed.
     * But that's hard/impossible to mock.
     * We happen to know that in the case where
     * SSLConfigurationFactory.getSSLConfigForComponent()
     * constructs one, getProperties() is always called first.
     * That's why we're asserting getProperties()
     * isn't called.
     */
    verify(locatorLauncher, times((0))).getProperties();
  }
Integration tests for using {@link LocatorLauncher} as an in-process API within an existing JVM.

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