assertEquals("Number routes created" + list, 1, list.size());
for (Route route : list) {
Endpoint key = route.getEndpoint();
assertEquals("From endpoint", "seda:a", key.getEndpointUri());
EventDrivenConsumerRoute consumerRoute = assertIsInstanceOf(EventDrivenConsumerRoute.class, route);
Processor processor = consumerRoute.getProcessor();
processor = unwrap(processor);
LoggingErrorHandler loggingProcessor = assertIsInstanceOf(LoggingErrorHandler.class, processor);
processor = unwrap(loggingProcessor.getOutput());
SendProcessor sendProcessor = assertIsInstanceOf(SendProcessor.class, processor);
log.debug("Found sendProcessor: " + sendProcessor);