private static final AtomicBoolean CALLED = new AtomicBoolean();
public void testDeadLetterChannelAlwaysHandled() throws Exception {
// need to set exception handler manually to work around an issue configuring from uri
SedaConsumer seda = (SedaConsumer) context.getRoute("foo").getConsumer();
seda.setExceptionHandler(new MyExceptionHandler());
getMockEndpoint("mock:foo").expectedMessageCount(1);
getMockEndpoint("mock:bar").expectedMessageCount(1);
getMockEndpoint("mock:dead").expectedMessageCount(1);
getMockEndpoint("mock:result").expectedMessageCount(0);