@Override
      public void afterCommit(TransactionEvent event) {
        afterCommits++;
      }
Extracted from TXWriterJUnitTest to share with TXWriterOOMEJUnitTest.
geode-junit/src/main/java/org/apache/geode/TXWriterTestCase.java