### Question:
Axis2MockWebServiceClient { public ResponseActions sendRequestTo(final EndpointReference to, final String action, RequestCreator requestCreator) { try { Assert.notNull(requestCreator, "'requestCreator' must not be null"); WebServiceMessage requestMessage = requestCreator.createRequest(messageFactory); MessageContext messageContext = new DefaultMessageContext(requestMessage, messageFactory); interceptingTemplate.interceptRequest(messageContext, new WebServiceMessageReceiver() { public void receive(MessageContext messageContext) throws Exception { ByteArrayOutputStream response = new ByteArrayOutputStream(); InputStream request = getSourceAsStream(getEnvelopeSource(messageContext.getRequest())); receiver.processMessage(createMessageContext(action, to), request, response); messageContext.setResponse(messageFactory.createWebServiceMessage(new ByteArrayInputStream(response.toByteArray()))); } }); return new MockWebServiceClientResponseActions(messageContext); } catch (Exception e) { AssertionErrors.fail(e.getMessage()); return null; } } Axis2MockWebServiceClient(WebServiceMessageFactory messageFactory, ConfigurationContext configurationContext, ClientInterceptor[] interceptors);  Axis2MockWebServiceClient(ConfigurationContext configurationContext, ClientInterceptor[] interceptors); ResponseActions sendRequestTo(final EndpointReference to, final String action, RequestCreator requestCreator); ResponseActions sendRequestTo(String serviceAddress, RequestCreator requestCreator);  }### Answer:
@Test public void testNormal() { createClient(configurationContext).sendRequestTo("/axis2/services/TestService", withMessage("request.xml")).andExpect(message("response.xml")); }
@Test public void testInterceptor() { ClientInterceptor interceptor = createMock(ClientInterceptor.class); expect(interceptor.handleRequest((MessageContext) anyObject())).andReturn(true); expect(interceptor.handleResponse((MessageContext) anyObject())).andReturn(true); replay(interceptor); Axis2MockWebServiceClient client = createClient(configurationContext, new ClientInterceptor[]{interceptor}); client.sendRequestTo("/axis2/services/TestService", withMessage("request.xml")).andExpect(message("response.xml")); assertNotNull(TstWebService.getValue()); verify(interceptor); }