@Test
  public void testStatsMatchWithSize() throws Exception {
    // start a server
    int port = server.invoke(this::createServerCache);

    // create durable client, with durable RI
    client.invoke(() -> createClientCache(hostName, port));

    // do puts on server
    server.invoke(() -> doPuts(10));

    client.invoke(() -> awaitCreates(10));

    // close durable client
    client.invoke(this::closeClientCacheWithKeepAlive);

    server.invoke(this::awaitProxyIsPaused);

    // resume puts on server
    server.invoke(() -> resumePuts(10));

    // start durable client
    client.invoke(() -> createClientCache(hostName, port));

    // wait for full queue dispatch
    client.invoke(() -> awaitCreates(10));

    // verify the stats
    server.invoke(this::verifyStats);
  }
Client queue size statistic should not go negative when client goes offline.

<p>
TRAC #48571: CacheClientProxy.getQueueSizeStat() gives negative numbers when client goes down.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARegionQueueSizeRegressionTest.java