@Test
  public void testClearStatsWithDiskRegion() {
    int port = server1.invoke(this::createServerCacheWithPersistence);
    client1.invoke(() -> createClientCacheWithPersistence(getServerHostName(), port));

    client1.invoke(this::doPutsAndClear);
    client1.invoke(this::doPutsAndClear);

    client1.invoke(this::validateClearCountStat);
    server1.invoke(this::validateClearCountStat);
  }
Verifies that clear operation count matches with stats count with persistence
geode-core/src/distributedTest/java/org/apache/geode/cache/RegionClearStatsDistributedTest.java