expect(requestMock.getSoapAction()).andReturn("http://springframework.org/spring-ws/SoapAction4");
WebServiceMessageFactory factoryMock = createMock(WebServiceMessageFactory.class);
replay(requestMock, factoryMock);
Method doItRepeatable = MyEndpoint.class.getMethod("doItRepeatable");
MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItRepeatable);
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());