@Test
  public void testNonDurableClientStatistics() {
    // Step 1: Starting the servers
    PORT1 = server1VM
        .invoke(() -> createCacheServer(regionName, true));
    server1VM.invoke(DurableClientStatsDUnitTest::checkStatistics);
    // Step 2: Bring Up the Client
    // Start a durable client that is not kept alive on the server when it
    // stops normally

    startAndCloseNonDurableClientCache();
    startAndCloseNonDurableClientCache(); //////// -> Reconnection1
    Wait.pause(1400); //////// -> Queue Dropped1
    startAndCloseNonDurableClientCache();
    Wait.pause(1400); //////// -> Queue Dropped2

    startRegisterAndCloseNonDurableClientCache();
    Wait.pause(500);

    server1VM.invoke(() -> DurableClientStatsDUnitTest.putValue("Value1")); //////// ->
    //////// Enqueue
    //////// Message1

    Wait.pause(500);
    startAndCloseNonDurableClientCache(); //////// -> Reconnection2
    Wait.pause(1400); //////// -> Queue Dropped3
    startAndCloseNonDurableClientCache();
    Wait.pause(1400); //////// -> Queue Dropped4
    startRegisterAndCloseNonDurableClientCache();
    Wait.pause(500);

    server1VM.invoke(() -> DurableClientStatsDUnitTest.putValue("NewValue1")); //////// ->
    //////// Enqueue
    //////// Message2

    startAndCloseNonDurableClientCache(); //////// -> Reconnection3

    server1VM.invoke(() -> DurableClientStatsDUnitTest
        .checkStatisticsWithExpectedValues(0, 0, 0));
  }
The DUnitTest checks whether the following Three counts are incremented correctly or not: 1)
DurableReconnectionCount -> Incremented Each time a Proxy present in server for a DurableClient
2) QueueDroppedCount -> Incremented Each time a queue for a durable client is dropped after
durable Timeout 3) EventsEnqueuedWhileClientAwayCount -> Incremented Each time an entry is made
when client is away.

In the given test DurableClient comes up and goes down discreetly with different
DurableClientTimeouts so as to increment the counts
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientStatsDUnitTest.java