MessageExchangePattern.REQUEST_RESPONSE, null);
endpoint.setListener(inboundListener);
requestEvent = createTestRequestEvent(endpoint);
responseEvent = createTestResponseEvent(endpoint);
MessageProcessor mpChain = ((AbstractEndpoint) endpoint).getMessageProcessorChain(requestEvent.getFlowConstruct());
// Required for UnauthorisedException creation
RequestContext.setEvent(requestEvent);
try
{
result = mpChain.process(requestEvent);
fail("Exception expected");
}
catch (TestSecurityFilter.StaticMessageUnauthorisedException e)
{
requestEvent.getFlowConstruct().getExceptionListener().handleException(e, requestEvent);