HelloWorldService service1 = (HelloWorldService) child.getContext("target").getInstance(null);
Assert.assertEquals(0, service1.count());
child.publish(new RequestEnd(this, id));
child.publish(new ModuleStop(this));
runtime.stop();
}
public void testEPtoJavaRequestInvoke() throws Throwable {
RuntimeContext runtime = MockFactory.registerFooBinding(MockFactory.createJavaRuntime());
PolicyBuilderRegistry registry = (PolicyBuilderRegistry) ((CompositeContext) runtime.getSystemContext().getContext(MockFactory.SYSTEM_CHILD))