assertEquals("From endpoint", "seda://a", key.getEndpointUri());
EventDrivenConsumerRoute consumer = assertIsInstanceOf(EventDrivenConsumerRoute.class, route);
Channel channel = unwrapChannel(consumer.getProcessor());
Pipeline line = assertIsInstanceOf(Pipeline.class, channel.getNextProcessor());
Iterator it = line.getProcessors().iterator();
assertIsInstanceOf(ThreadsProcessor.class, it.next());
// output should be wrapped in a pipeline
Pipeline threadsLine = assertIsInstanceOf(Pipeline.class, it.next());
Iterator<Processor> it2 = threadsLine.getProcessors().iterator();
assertIsInstanceOf(SendProcessor.class, unwrapChannel(it2.next()).getNextProcessor());
assertIsInstanceOf(SendProcessor.class, unwrapChannel(it2.next()).getNextProcessor());
}
}