public void testDefaultConfiguration()
throws Exception
{
DN dn = DN.decode("cn=Random Password Generator,cn=Password Generators," +
"cn=config");
ConfigEntry configEntry = DirectoryServer.getConfigEntry(dn);
assertNotNull(configEntry);
RandomPasswordGeneratorCfg configuration =
AdminTestCaseUtils.getConfiguration(
RandomPasswordGeneratorCfgDefn.getInstance(),
configEntry.getEntry());
RandomPasswordGenerator generator = new RandomPasswordGenerator();
generator.initializePasswordGenerator(configuration);
assertNotNull(generator.generatePassword(null));
generator.finalizePasswordGenerator();