// there should be no error handlers and no stream cache
for (Route route : context.getRoutes()) {
if (route instanceof EventDrivenConsumerRoute) {
EventDrivenConsumerRoute consumer = (EventDrivenConsumerRoute) route;
StreamCachingInterceptor cache = findProceesorInRoute(consumer.getProcessor(), StreamCachingInterceptor.class);
assertNull("There should be no stream cache found: " + cache, cache);
ErrorHandler error = findProceesorInRoute(consumer.getProcessor(), ErrorHandler.class);
assertNull("There should be no error handler found: " + error, error);
}