public void testNPE() throws Exception {
MockEndpoint result = getMockEndpoint(RESULT_QUEUE);
result.expectedMessageCount(0);
MockEndpoint mock = getMockEndpoint(ERROR_QUEUE);
mock.expectedMessageCount(1);
mock.expectedHeaderReceived(MESSAGE_INFO, "Damm a NPE");
try {
template.sendBody("direct:a", "Hello NPE");
fail("Should have thrown a NullPointerException");
} catch (RuntimeCamelException e) {