}
public void testAuthenticatePrincipalCnOnly() throws Exception
{
X500Principal principal = new X500Principal("CN=person");
UsernamePrincipal expectedPrincipal = new UsernamePrincipal("person");
SaslServer saslServer = _manager.createSaslServer("EXTERNAL", "example.example.com", principal);
AuthenticationResult result = _manager.authenticate(saslServer, new byte[0]);
assertNotNull(result);
assertEquals("Expected authentication to be successful",