@Test
  public void testCMRCreatedForMemOrEntryEvictionPolicy() throws Exception {
    Boolean isRegion = Boolean.TRUE;
    // 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);

    serverVM0
        .invoke(() -> HARQueueNewImplDistributedTest.verifyHaContainerType(isRegion, PORT1));
    serverVM1
        .invoke(() -> HARQueueNewImplDistributedTest.verifyHaContainerType(isRegion, PORT2));

    serverVM0.invoke(() -> HARQueueNewImplDistributedTest.stopOneBridgeServer(PORT1));
    serverVM1.invoke(() -> HARQueueNewImplDistributedTest.stopOneBridgeServer(PORT2));

    serverVM0.invoke(
        () -> HARQueueNewImplDistributedTest.verifyHaContainerDestroyed(isRegion, PORT1));
    serverVM1.invoke(
        () -> HARQueueNewImplDistributedTest.verifyHaContainerDestroyed(isRegion, PORT2));
  }
This test verifies that client-messages-regions are created for the cache servers who have
eviction policy either as 'mem' or as 'entry'. Also, it verifies that such a
client-messages-region is destroyed when its cache server is stopped.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARQueueNewImplDistributedTest.java