@Override
    public void sync(boolean forceSync) throws IOException {
      if (doSyncs) {
        super.sync(forceSync);
      }
    }
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