MessageEndpointAdapter implements EndpointAdapter { @Override public void invoke(MessageContext messageContext, Object endpoint) throws Exception { ((MessageEndpoint) endpoint).invoke(messageContext); }  @Override boolean supports(Object endpoint); @Override void invoke(MessageContext messageContext, Object endpoint);  }
@Test public void testInvoke() throws Exception { MessageContext context = new DefaultMessageContext(new MockWebServiceMessageFactory()); endpointMock.invoke(context); replay(endpointMock); adapter.invoke(context, endpointMock); verify(endpointMock); }