TestListener listener = new TestListener();
TestFilter filter = new TestFilter();
eventManager.registerListener("Emitter", listener, filter, null);
emitter.testFire("testtype", null);
filter.fireEvent = false;
emitter.testFire("testtype", null);
ArrayList<KernelEvent> expected = new ArrayList<KernelEvent>();
expected.add(EventTestCaseSupport.makeExpected(emitter, "testtype", 0, null, null));
EventTestCaseSupport.check(listener, expected);
expected.add(EventTestCaseSupport.makeExpected(emitter, "testtype", 1, null, null));
EventTestCaseSupport.check(filter, expected);