Assert.assertNotNull(ctx);
runtime.getRootContext().registerModelObject(MockFactory.createCompositeComponent("test"));
CompositeContext testCtx = (CompositeContext) runtime.getRootContext().getContext("test");
Assert.assertNotNull(testCtx);
testCtx.registerModelObject(MockFactory.createModule(Scope.MODULE,Scope.REQUEST));
testCtx.publish(new ModuleStart(this));
// first request
Object id = new Object();
testCtx.publish(new RequestStart(this,id));
GenericComponent source = (GenericComponent)testCtx.getContext("source").getInstance(null);