@Test
  public void startUsesControllableProcessFromBuilder() {
    ServerLauncherCacheProvider serverLauncherCacheProvider =
        mock(ServerLauncherCacheProvider.class);
    ControllableProcess controllableProcess = mock(ControllableProcess.class);
    Cache cacheFromBuilder = createCache();
    when(serverLauncherCacheProvider.createCache(any(), any())).thenReturn(cacheFromBuilder);

    ServerLauncher serverLauncher = new Builder()
        .setControllableProcessFactory(() -> controllableProcess)
        .setDisableDefaultServer(true)
        .setServerLauncherCacheProvider(serverLauncherCacheProvider)
        .build();
    serverLauncher.start();

    serverLauncher.stop();

    verify(controllableProcess).stop(anyBoolean());
  }
Unit tests for {@link ServerLauncher}.

@since GemFire 7.0
geode-core/src/test/java/org/apache/geode/distributed/ServerLauncherTest.java