EventManager eventManager = new EventManager();
CountingObserver observer = new CountingObserver();
eventManager.addObserver(observer, CamelContextStartedEvent.class);
eventManager.addObserver(observer, CamelContextStoppedEvent.class);
CamelEventBridge eventBridge = new CamelEventBridge(eventManager);
DefaultCamelContext context = new DefaultCamelContext();
context.getManagementStrategy().addEventNotifier(eventBridge);
assertTrue(observer.counter == 0);
context.start();