scope.registerFactory(createConfiguration("NewTestService"));
scope.onEvent(new ModuleStart(this));
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();
}