@Test
public void testTransactedExceptionThrown() throws InterruptedException {
String message = "this message will explode";
MockEndpoint mockOut = getMockEndpoint("mock:out");
mockOut.whenAnyExchangeReceived(new ExceptionThrowingProcessor());
// even though the route throws an exception, we don't have to deal with it here as we
// don't send the message to the route directly, but to the broker, which acts as a middleman.
template.sendBody("jms:inbound", message);