* @return
* @throws IOException
*/
private Base64MD5PasswordFilePrincipalDatabase createTestPrincipalDatabase() throws IOException
{
Base64MD5PasswordFilePrincipalDatabase db = new Base64MD5PasswordFilePrincipalDatabase();
File file = File.createTempFile("passwd", "db");
file.deleteOnExit();
db.setPasswordFile(file.getCanonicalPath());
db.createPrincipal( createTestPrincipal("knownuser"), "guest".toCharArray());
db.createPrincipal( createTestPrincipal("qpid3158user"), "guest2".toCharArray());
return db;
}