@Override
protected void setUp() throws Exception
{
super.setUp();
CRAMMD5HexInitialiser _initializer = new CRAMMD5HexInitialiser();
//Use properties to create a PrincipalDatabase
Base64MD5PasswordFilePrincipalDatabase db = createTestPrincipalDatabase();
assertEquals("Unexpected number of test users in the db", 2, db.getUsers().size());
_initializer.initialise(db);
_saslFactory = new CRAMMD5HexServerFactory();
_saslServer = _saslFactory.createSaslServer(CRAMMD5HexSaslServer.MECHANISM,
"AMQP",
"localhost",
_initializer.getProperties(),
_initializer.getCallbackHandler());
assertNotNull("Unable to create saslServer with mechanism type " + CRAMMD5HexSaslServer.MECHANISM, _saslServer);
}