String message = "this message will explode";
assertEquals(0, auditLogDao.getAuditCount(message));
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);