assertEquals(5, events.size());
assertIsInstanceOf(CamelContextStartingEvent.class, events.get(0));
assertIsInstanceOf(CamelContextStartedEvent.class, events.get(1));
assertIsInstanceOf(CamelContextStoppingEvent.class, events.get(2));
ServiceStopFailureEvent event = assertIsInstanceOf(ServiceStopFailureEvent.class, events.get(3));
assertIsInstanceOf(CamelContextStoppedEvent.class, events.get(4));
assertEquals("Fail B", event.getCause().getMessage());
assertEquals("Failure to stop service: B due to Fail B", event.toString());
}