MockEndpoint.assertIsSatisfied(result, mock);
}
public void testHandledExceptionWithExpression() throws Exception {
MockEndpoint result = getMockEndpoint(RESULT_QUEUE);
result.expectedMessageCount(0);
MockEndpoint mock = getMockEndpoint(ERROR_QUEUE);
mock.expectedMessageCount(1);
mock.expectedHeaderReceived(MESSAGE_INFO, "Handled exchange with IOException");
template.sendBodyAndHeader("direct:a", "Hello IOE", "foo", "bar");