InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("security/login-config2.xml");
InputStreamReader xmlReader = new InputStreamReader(is);
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
PolicyConfig config = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, null);
ApplicationPolicy aPolicy = (ApplicationPolicy)config.get("testXMLLoginModule");
AuthenticationInfo info = (AuthenticationInfo)aPolicy.getAuthenticationInfo();
assertTrue("test-xml-config != null", info != null);
AppConfigurationEntry[] entries = info.getAppConfigurationEntry();
assertTrue("entries.length == 1", entries.length == 1);