public void testBloomReportSink() throws FlumeSpecException, IOException,
InterruptedException {
String spec = "{bloomGen(100,2) => {bloomCheck(100,2,\"counter(\\\"test\\\") \") => counter(\"total\") } } }";
EventSink snk = FlumeBuilder.buildSink(new ReportTestingContext(), spec);
snk.open();
snk.append(new EventImpl(new byte[0]));
snk.append(new EventImpl(new byte[0]));
CounterSink ctr = (CounterSink) ReportManager.get().getReportable("test");
assertEquals(0, ctr.getCount());
CounterSink total = (CounterSink) ReportManager.get()
.getReportable("total");