assertEquals("Got the wrong reply ", "Hello test", reply);
assertTrue("No Inbound message received", icp.isCalled());
assertEquals("The target service not invoked", ++ic, implementor.getInvocationCount());
icp.setCalled(false);
greeter.greetMeOneWay("call greetMe OneWay !");
assertFalse("An unnecessary inbound message", icp.isCalled());
// wait a few seconds for the async oneway service to be invoked
Thread.sleep(3000);
assertEquals("The target service not invoked", ++ic, implementor.getInvocationCount());
}