}
});
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
InputStream is2 = getResource("xml/mbeanserver/testObjFactory.xml");
Services services = (Services)unmarshaller.unmarshal(is2, schemaBinding);
List mbeans = services.getMBeans();
assertEquals("There is 1 mbean", 1, mbeans.size());
MBeanData mbean = (MBeanData) mbeans.get(0);
assertTrue("ClassName == org.jboss.security.auth.login.DynamicLoginConfig",
mbean.getCode().equals("org.jboss.security.auth.login.DynamicLoginConfig"));