@Override
    public void append(Entry entry) throws IOException {
      if (doAppends) {
        super.append(entry);
      }
    }
Presumes init will be called by a single thread prior to any access of other methods.
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/IOTestProvider.java