@Test
  public void testHAEventWrapperDoesNotHoldCUMOnceInsideCMR() throws Exception {
    // slow start for dispatcher
    serverVM0.invoke(() -> ConflationDistributedTestHelper.setIsSlowStart("30000"));

    createClientCache(getServerHostName(), PORT1, PORT2,
        "1");
    final String client1Host = getServerHostName();
    clientVM1.invoke(() -> HARQueueNewImplDistributedTest.createClientCache(client1Host,
        PORT1, PORT2, "1"));
    final String client2Host = getServerHostName();
    clientVM2.invoke(() -> HARQueueNewImplDistributedTest.createClientCache(client2Host,
        PORT1, PORT2, "1"));

    registerInterestListAll();
    clientVM1.invoke(HARQueueNewImplDistributedTest::registerInterestList);
    clientVM2.invoke(HARQueueNewImplDistributedTest::registerInterestList);

    serverVM1.invoke(HARQueueNewImplDistributedTest::stopServer);

    serverVM0.invoke(() -> HARQueueNewImplDistributedTest.createEntries(1000L));

    serverVM1.invoke(HARQueueNewImplDistributedTest::startServer);
    Thread.sleep(2000);

    serverVM0.invoke(() -> HARQueueNewImplDistributedTest.verifyNullCUMReference(PORT1));
    serverVM1.invoke(() -> HARQueueNewImplDistributedTest.verifyNullCUMReference(PORT2));
  }
This test verifies that the HAEventWrapper instances present in the client-messages-region give
up the references to their respective ClientUpdateMessageImpl instances.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARQueueNewImplDistributedTest.java