assertEquals("Unexpected principals size", 0, principals.size());
}
private AuthenticationResult authenticatePlain(String userName, String userPassword) throws SaslException, Exception
{
PlainSaslServer ss = (PlainSaslServer) _authenticationManager.createSaslServer("PLAIN", "test", null);
byte[] response = SaslUtil.generatePlainClientResponse(userName, userPassword);
return _authenticationManager.authenticate(ss, response);
}