expect(requestMock.getSoapAction()).andReturn("http://springframework.org/spring-ws/SoapAction2");
WebServiceMessageFactory factoryMock = createMock(WebServiceMessageFactory.class);
replay(requestMock, factoryMock);
Method doItMultiple = MyEndpoint.class.getMethod("doItMultiple");
MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItMultiple);
MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
EndpointInvocationChain chain = mapping.getEndpoint(context);
Assert.assertNotNull("MethodEndpoint not registered", chain);
Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());