private void validateClearCountStat() {
    assertThat(cacheRule.getCache().getCachePerfStats().getClearCount())
        .isEqualTo(EXPECTED_CLEAR_COUNT_STAT_VALUE);
  }
Verifies that clear operation count matches with stats count with persistence
geode-core/src/distributedTest/java/org/apache/geode/cache/RegionClearStatsDistributedTest.java