ManagedObject mo = factory.initManagedObject(plainMCBean, "PlainMCBean", "MC");
assertNotNull(mo);
assertEquals("plain", mo.getComponentName());
AbstractBeanMetaData runtimeMCBean = new AbstractBeanMetaData("runtime", MCBeanWithRuntimeName.class.getName());
runtimeMCBean.addProperty(new AbstractPropertyMetaData("id", "RuntimeMCBean"));
runtimeMCBean.addProperty(new AbstractPropertyMetaData("componentName", "FromObjectRuntime"));
ManagedObject mo2 = factory.initManagedObject(runtimeMCBean, "RuntimeMCBean", "MC");
assertNotNull(mo2);
assertEquals("FromObjectRuntime", mo2.getComponentName());
}