* authentication success.
*
*/
public void testSaslAuthenticationSuccess() throws Exception
{
SaslServer testServer = createTestSaslServer(true, false);
AuthenticationResult result = _manager.authenticate(testServer, "12345".getBytes());
final Subject subject = result.getSubject();
assertTrue(subject.getPrincipals().contains(new UsernamePrincipal("guest")));
assertEquals(AuthenticationStatus.SUCCESS, result.getStatus());