}
protected CompositeContext createContextHierachy() throws Exception {
List<ContextFactoryBuilder> systemBuilders = MockFactory.createSystemBuilders();
CompositeContext parent = new CompositeContextImpl("test.parent", null, new DefaultScopeStrategy(),
new EventContextImpl(), new MockConfigContext(systemBuilders));
Component component = MockFactory.createCompositeComponent("test.child");
parent.registerModelObject(component);
parent.start();
CompositeContext child = (CompositeContext) parent.getContext("test.child");
Assert.assertNotNull(child);