public void createServersAndClients(int redundancyLevel) {
    final Host host = Host.getHost(0);
    // start servers first
    PORT1 = vm0
        .invoke(() -> CacheServerTestUtil.createCacheServer(REGION_NAME, Boolean.TRUE));

    PORT2 = vm3
        .invoke(() -> CacheServerTestUtil.createCacheServer(REGION_NAME, Boolean.TRUE));

    vm1.invoke(CacheServerTestUtil::disableShufflingOfEndpoints);
    vm2.invoke(CacheServerTestUtil::disableShufflingOfEndpoints);
    vm1.invoke(() -> CacheServerTestUtil.createCacheClient(
        getClientPool(NetworkUtils.getServerHostName(host), redundancyLevel), REGION_NAME));
    vm2.invoke(() -> CacheServerTestUtil
        .createCacheClient(getClientPool(NetworkUtils.getServerHostName(host), 0), REGION_NAME));
  }
Test Scenario :

one server two clients create Entries in all vms c1 : register (k1,k2,k3,k4,k5) c2 : put (k1 ->
vm2-key-1) and (k6 -> vm2-key-6) c1 : validate (r.getEntry("key-1").getValue() == "vm2-key-1")
(r.getEntry("key-6").getValue() == "key-6") // as it is not registered s1 : stop server c2 : put
(k1 -> vm2-key-1) and (k6 -> vm2-key-6) c1 : validate (r.getEntry("key-1").getValue() ==
"vm2-key-1") (r.getEntry("key-6").getValue() == "key-6") // as it is not registered *
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/InterestListFailoverDUnitTest.java