@Test
  public void startCacheServerStartsCacheServerWithBuilderValues() throws IOException {
    Cache cache = createCache();
    CacheServer cacheServer = mock(CacheServer.class, "CacheServer");
    when(cache.getCacheServers()).thenReturn(Collections.emptyList());
    when(cache.addCacheServer()).thenReturn(cacheServer);
    ServerLauncher launcher = new Builder()
        .setServerBindAddress(null)
        .setServerPort(11235)
        .setMaxThreads(10)
        .setMaxConnections(100)
        .setMaxMessageCount(5)
        .setMessageTimeToLive(10000)
        .setSocketBufferSize(2048)
        .setHostNameForClients("hostName4Clients")
        .setServerLauncherCacheProvider((a, b) -> cache)
        .setControllableProcessFactory(() -> mock(ControllableProcess.class))
        .build();

    launcher.start();

    verify(cacheServer).setBindAddress(null);
    verify(cacheServer).setPort(eq(11235));
    verify(cacheServer).setMaxThreads(10);
    verify(cacheServer).setMaxConnections(100);
    verify(cacheServer).setMaximumMessageCount(5);
    verify(cacheServer).setMessageTimeToLive(10000);
    verify(cacheServer).setSocketBufferSize(2048);
    verify(cacheServer).setHostnameForClients("hostName4Clients");
    verify(cacheServer).start();
  }
Unit tests for {@link ServerLauncher}.

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