ExoContainerContext.setCurrentContainer(oldContainer);
}
// Manual
root.registerComponentInstance("Bar", new ManagedWithObjectNameTemplate("Bar"));
Object instance2 = root.getComponentInstance("Bar");
assertNotNull(instance2);
Set set2 = server.queryMBeans(ObjectName.getInstance("exo:object=Bar"), null);