//Now all transformers are registered as listeners in order to get a context disposing notification
assertTrue(listeners.size() > 5);
TestListener listener = (TestListener) muleContext.getRegistry().lookupObject("listener");
assertNotNull(listener);
assertFalse(listener.isCalled());
manager.fireNotification(new TestEvent());
Thread.sleep(1000); // asynch events
assertTrue(listener.isCalled());
}
public void testExplicitlyConiguredNotificationListenerRegistration() throws InterruptedException