Assert.assertEquals(1, c.size());
MultiGrepReporterSink<String> snk = c.iterator().next();
snk.open();
EventSource src = new NoNlASCIISynthSource(25, 100, 1);
src.open();
EventUtil.dumpAll(src, snk);
snk.append(new EventImpl(NPE.getBytes()));
snk.append(new EventImpl(LOST.getBytes()));
snk.append(new EventImpl(LOST.getBytes()));
Histogram<String> h = snk.getHistogram();
System.out.println(h);
Assert.assertEquals(3, h.total());
Assert.assertEquals(2, h.get(LOST));
Assert.assertEquals(1, h.get(NPE));
snk.close();
src.close();
}