replyAction, faultAction);
WebServiceConnection connectionMock = createMock(WebServiceConnection.class);
SaajSoapMessage valid = loadSaajMessage(getTestPath() + "/valid.xml");
MessageContext context = new DefaultMessageContext(valid, new SaajSoapMessageFactory(messageFactory));
SaajSoapMessage response = (SaajSoapMessage) context.getResponse();
URI messageId = new URI("uid:1234");
expect(strategyMock.newMessageId((SoapMessage) context.getResponse())).andReturn(messageId);
URI uri = new URI("http://example.com/business/client1");
expect(senderMock.supports(uri)).andReturn(true);
expect(senderMock.createConnection(uri)).andReturn(connectionMock);
connectionMock.send(response);
connectionMock.close();
replay(strategyMock, senderMock, connectionMock);
boolean result = interceptor.handleResponse(context, null);
assertFalse("Out of Band request handled", result);
assertFalse("Message context has response", context.hasResponse());
verify(strategyMock, senderMock, connectionMock);
}