{
getLog().info("testXMLLoginModule");
// Install the custom JAAS configuration
XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
config.setConfigResource("security/login-config2.xml");
config.loadConfig();
Configuration.setConfiguration(config);
AppConfigurationEntry[] entry = config.getAppConfigurationEntry("testXMLLoginModule");
assertTrue("Found testXMLLoginModule", entry != null);
getLog().info("testXMLLoginModule options: "+entry[0].getOptions());