assertNotNull(sr);
Service endpoint = sr.getService("test");
assertNotNull(endpoint);
Invoker invoker = endpoint.getInvoker();
assertNotNull(invoker);
Method method = DummyServiceThatCounts.class.getMethod("theMethod", new Class[] {});
assertNotNull(method);
invoker.invoke(method, new Object[] {}, null);
invoker.invoke(method, new Object[] {}, null);
invoker.invoke(method, new Object[] {}, null);
// Assert it
assertEquals(1, instanceCount);
assertEquals(3, callCount);
}