public void testHandback() throws Throwable
{
Kernel kernel = bootstrap();
KernelRegistry registry = kernel.getRegistry();
KernelEventManager eventManager = kernel.getEventManager();
TestEmitter emitter = new TestEmitter();
KernelRegistryEntry entry = makeEntry(emitter);
registry.registerEntry("Emitter", entry);
TestListener listener = new TestListener();
TestFilter filter = new TestFilter();
Object handback = new Object();
eventManager.registerListener("Emitter", listener, filter, handback);
emitter.testFire("testtype", null);
ArrayList expected = new ArrayList();
expected.add(EventTestCaseSupport.makeExpected(emitter, "testtype", 0, null, handback));
EventTestCaseSupport.check(listener, expected);
EventTestCaseSupport.check(filter, expected);