private InternalCache createCache(InternalResourceManager internalResourceManager) {
    InternalCache cache = mock(InternalCache.class);
    CacheServer cacheServer = mock(CacheServer.class);

    when(cache.addCacheServer()).thenReturn(cacheServer);
    when(cache.getResourceManager()).thenReturn(internalResourceManager);
    when(internalResourceManager.allOfStartupTasks())
        .thenReturn(CompletableFuture.completedFuture(null));

    return cache;
  }
Unit tests for {@link ServerLauncher}.

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