ComponentType type = new ComponentType("MCBean", "ServerInfo");
getLog().debug("MCBeans: "+mgtView.getComponentsForType(type));
ManagedComponent mc = mgtView.getComponent("jboss.system:type=ServerInfo", type);
assertNotNull(mc);
// Serach by alias for the jmx name
AliasMatcher matcher = new AliasMatcher();
Set<ManagedComponent> mcs = mgtView.getMatchingComponents("jboss.system:type=ServerInfo", type, matcher);
log.debug("jboss.system:type=ServerInfo components: "+mcs);
assertEquals("Found one MC for alias", 1, mcs.size());
Map<String, ManagedProperty> props = mc.getProperties();
getLog().info(props);