int initServerCache(boolean notifyBySub, VM vm, boolean isHA) {
    int port = getRandomAvailableTCPPort();
    return vm.invoke(() -> createServerCache(notifyBySub, getMaxThreads(), isHA, port));
  }
Tests client server corner cases between Region and Pool
geode-dunit/src/main/java/org/apache/geode/internal/cache/tier/sockets/ClientServerMiscDUnitTestBase.java