@Override
    public void visitLogEntryBeforeWrite(RegionInfo info, WALKey logKey, WALEdit logEdit) {
      increments++;
    }
A loaded WAL coprocessor won't break existing WAL test cases.
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALFactory.java