((CarbonEventBroker)broker).registerNotificationManager(notificationManager);
assertNotNull("Notification Manager is not set", broker.getNotificationManager());
assertSame("Invalid notification manager", notificationManager,
broker.getNotificationManager());
broker.publishEvent(new Event());
assertTrue("Invalid event published status",
((TestNotificationManager)notificationManager).isEventPublished());
}