public void testAuthenticator() throws Exception
{
assertNotNull(authenticator);
assertTrue(authenticator instanceof OrganizationAuthenticatorImpl);
Credential[] cred = new Credential[]{new UsernameCredential("admin"), new PasswordCredential("admin")};
String userId = authenticator.validateUser(cred);
assertEquals("admin", userId);
Identity identity = authenticator.createIdentity(userId);
assertTrue(identity.getGroups().size() > 0);
}