// and the Web Service Provider
Object[] args = new Object[]{messageContext, wsProviderInterceptor};
// Let's grab the container as the Web Service Provider would do and
// perform an invocation
RpcContainer container = (RpcContainer) deploymentInfo.getContainer();
Method echoMethod = EchoServiceEndpoint.class.getMethod("echo", String.class);
String value = (String) container.invoke("EchoBean", echoMethod.getDeclaringClass(), echoMethod, args, null);
assertCalls(Call.values());
calls.clear();
assertEquals("Hello world" , value);