final CountDownLatch start = new CountDownLatch(threads);
final CountDownLatch done = new CountDownLatch(threads);
final NaiveFileWALManager wal = new NaiveFileWALManager(dir);
wal.open();
Context ctx = new ReportTestingContext();
EventSink cntsnk = new CompositeSink(ctx, "counter(\"total\")");
// use the same wal, but different counter.
final EventSink snk = new NaiveFileWALDeco<EventSink>(ctx, cntsnk, wal,
new TimeTrigger(new ProcessTagger(), 1000000), new AckListener.Empty(),
1000000);