* @throws RepositoryException
*/
public void testValidUserGroupResolutionOnly() throws RepositoryException {
Session session = connector.login();
AuthenticationManager manager = session.getAuthenticationManager();
AuthenticationResponse response = manager.authenticate(
new SimpleAuthenticationIdentity(username, null));
assertTrue("Authenticated: " + username, response.isValid());
@SuppressWarnings({ "unchecked", "cast" })
Collection<Principal> groups = (Collection<Principal>) response.getGroups();
if (groups != null) {