public Processor createErrorHandler(RouteContext routeContext, final Processor processor) {
fired.compareAndSet(false, true);
return super.createErrorHandler(routeContext, processor);
}
});
ServiceReference ref = registerInOutService("inOut", new RuntimeErrorInHandler());
Exchange exchange = sendMessage(ref, TEST_CONTENT);
assertTrue(fired.get());
assertCause("Runtime error", exchange);
}