ModuleScopeInitDestroyComponent comp2 = (ModuleScopeInitDestroyComponent) scope.getContext("NewTestService").getInstance(null);
Assert.assertNotNull(comp2);
Assert.assertTrue(comp2.isInitialized());
scope.onEvent(new ModuleStop(this));
Assert.assertTrue(comp2.isDestroyed());
scope.stop();
}
public void testRegisterContextAfterStart() throws Exception {
EventContext ctx = new EventContextImpl();
ModuleScopeContext scope = new ModuleScopeContext(ctx);