*/
public void testRegisterSameNameAfterStart() throws Exception {
CompositeContext parent = new CompositeContextImpl("test.parent", null, new DefaultScopeStrategy(),
new EventContextImpl(), new MockConfigContext(builders));
parent.registerModelObject(MockFactory.createSystemCompositeComponent("test.child"));
parent.start();
CompositeContext child = (CompositeContext) parent.getContext("test.child");
Assert.assertNotNull(child);
try {
parent.registerModelObject(MockFactory.createSystemCompositeComponent("test.child"));
fail("Expected " + DuplicateNameException.class.getName());