// test that we also handles a configuration with 2 or more exceptions
MockEndpoint result = getMockEndpoint(RESULT_QUEUE);
result.expectedMessageCount(0);
MockEndpoint mock = getMockEndpoint(SECURITY_ERROR_QUEUE);
mock.expectedMessageCount(1);
mock.expectedHeaderReceived(MESSAGE_INFO, "Damm some security error");
try {
template.sendBody("direct:a", "I am not allowed to do this");
fail("Should have thrown a GeneralSecurityException");
} catch (RuntimeCamelException e) {