/**
* Tests adding a context before its parent has been started
*/
public void testRegisterContextBeforeStart() throws Exception {
EventContext ctx = new EventContextImpl();
CompositeContext moduleComponentCtx = new CompositeContextImpl();
moduleComponentCtx.setName("testMC");
CompositeScopeContext scopeContainer = new CompositeScopeContext(ctx);
scopeContainer.registerFactory(MockFactory.createCompositeConfiguration("CompositeComponent"));
scopeContainer.start();
scopeContainer.onEvent(new ModuleStart(this));
scopeContainer.getContext("CompositeComponent");