@Test
  public void testVerifyClearNotReceivedBySenderReceivedByOthers() {
    CacheSerializableRunnable resetFlags = new CacheSerializableRunnable("resetFlags") {
      @Override
      public void run2() throws CacheException {
        gotClear = false;
        gotDestroyed = false;
      }
    };
    server1.invoke(resetFlags);
    server2.invoke(resetFlags);
    client1.invoke(resetFlags);
    client2.invoke(resetFlags);


    // First create entries on both servers via the two client
    client1.invoke(ClearPropagationDUnitTest::createEntriesK1andK2);
    client2.invoke(ClearPropagationDUnitTest::createEntriesK1andK2);
    client1.invoke(ClearPropagationDUnitTest::registerKeysK1andK2);
    client2.invoke(ClearPropagationDUnitTest::registerKeysK1andK2);

    server1.invoke(checkSizeRegion(2, false/* Do not Block */));
    server2.invoke(checkSizeRegion(2, false/* Do not Block */));
    client1.invoke(checkSizeRegion(2, false/* Do not Block */));
    client2.invoke(checkSizeRegion(2, false/* Do not Block */));

    client1.invoke(() -> ClearPropagationDUnitTest
        .acquireConnectionsAndClear(NetworkUtils.getServerHostName(client1.getHost())));

    client1.invoke(checkSizeRegion(2, false/* Do not Block */));
    client2.invoke(checkSizeRegion(0, true /* block */));
    server1.invoke(checkSizeRegion(0, false/* Do not Block */));
    server2.invoke(checkSizeRegion(0, false/* Do not Block */));

    client1.invoke(ClearPropagationDUnitTest::verifyNoUpdates);

  }
This is the DUnit Test to verify clear operation in Client-Server Configuration. Start client 1
Start client 2 Start Server 1 Start Server 2 Identify the server which is not primary and
perform put and then clear operation from client1 against that server. Verify that Client 1
does not get the update Verify that Client 2 does get the update
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/ClearPropagationDUnitTest.java