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