EventDrivenConsumerRoute consumerRoute = assertIsInstanceOf(EventDrivenConsumerRoute.class, route);
Processor processor = unwrap(consumerRoute.getProcessor());
SendProcessor sendProcessor = null;
if (endpointUri.equals("seda:a")) {
LoggingErrorHandler loggingProcessor = assertIsInstanceOf(LoggingErrorHandler.class,
processor);
Processor outputProcessor = loggingProcessor.getOutput();
sendProcessor = assertIsInstanceOf(SendProcessor.class, outputProcessor);
} else {
assertEquals("From endpoint", "seda:b", endpointUri);
DeadLetterChannel deadLetterChannel = assertIsInstanceOf(DeadLetterChannel.class, processor);
Processor outputProcessor = deadLetterChannel.getOutput();