@Override
      public void beforeRegionClear(RegionEvent<String, String> event) throws CacheWriterException {
        cbCount++;
      }
Extracted from TXWriterJUnitTest to share with TXWriterOOMEJUnitTest.
geode-junit/src/main/java/org/apache/geode/TXWriterTestCase.java