* authentication success.
*
*/
public void testNonSaslAuthenticationSuccess() throws Exception
{
AuthenticationResult result = _manager.authenticate("guest", "guest");
final Subject subject = result.getSubject();
assertFalse("Subject should not be set read-only", subject.isReadOnly());
assertTrue(subject.getPrincipals().contains(new UsernamePrincipal("guest")));
assertEquals(AuthenticationStatus.SUCCESS, result.getStatus());
}