@Test
  public void testInvalidatesServerToClientTransactionsPropagation() {
    Integer port1 = initServerCache(server1);
    Integer port2 = initServerCache(server2);
    client1.invoke(() -> CacheServerTransactionsDUnitTest
        .createClientCache(NetworkUtils.getServerHostName(server1.getHost()), port1, port2));
    client2.invoke(() -> CacheServerTransactionsDUnitTest
        .createClientCache(NetworkUtils.getServerHostName(server1.getHost()), port1, port2));
    Wait.pause(PAUSE);

    server1.invoke(resetFlags());
    server2.invoke(resetFlags());
    client1.invoke(resetFlags());
    client2.invoke(resetFlags());

    server1.invoke(() -> CacheServerTransactionsDUnitTest.invalidateInTransaction("server1"));
    server1.invoke(CacheServerTransactionsDUnitTest::commitTransactionOnServer1);
    Wait.pause(PAUSE);

    server1.invoke(CacheServerTransactionsDUnitTest::verifyInvalidates);
    server2.invoke(CacheServerTransactionsDUnitTest::verifyInvalidates);
    client1.invoke(CacheServerTransactionsDUnitTest::verifyInvalidates);
    client2.invoke(CacheServerTransactionsDUnitTest::verifyInvalidates);
  }
Test for invalidate propagation to the clients when there are 2 servers and two clients
connected to both servers.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/CacheServerTransactionsDUnitTest.java