@Override
    public void beforeCommit(TransactionEvent event) throws TransactionWriterException {
      checkEvent(event);
    }
add a listener and writer that will throw an exception when invoked if events are for internal
regions
geode-core/src/distributedTest/java/org/apache/geode/pdx/PdxSerializableDUnitTest.java