template.sendBody("direct:start", "A,Forced,B,Kaboom,C");
fail("Should thrown an exception");
} catch (CamelExecutionException e) {
CamelExchangeException ee = assertIsInstanceOf(CamelExchangeException.class, e.getCause());
assertEquals("Sequential processing failed for number 3 on the exchange: Exchange[Message: Kaboom]", ee.getMessage());
RollbackExchangeException re = assertIsInstanceOf(RollbackExchangeException.class, ee.getCause());
assertEquals("Intended rollback on the exchange: Exchange[Message: Kaboom]", re.getMessage());
}
assertMockEndpointsSatisfied();
}