// since uSession is not user-admin this must fail.
for (Iterator it = gr.getMembers(); it.hasNext();) {
Authorizable auth = (Authorizable) it.next();
String msg = "GroupAdmin cannot remove members of groups unless he/she is UserAdmin.";
assertFalse(msg, gr.removeMember(auth));
}
} catch (AccessDeniedException e) {
// fine as well.
} finally {
// let superuser remove authorizables again