@Test
public void testRemoveAdministratorsAuth() throws Exception
{

    new NonStrictExpectations(AuthorizeUtil.class)
    {{
        // Allow manage AdminGroup perms (needed to possibly create group first)
        AuthorizeUtil.authorizeManageAdminGroup((Context) any, (Collection) any);
            result = null;
        // Allow remove AdminGroup perms
        AuthorizeUtil.authorizeRemoveAdminGroup((Context) any, (Collection) any);
            result = null;
    }};
    // Ensure admin group is created first
    Group result = collectionService.createAdministrators(context, collection);
    assertThat("testRemoveAdministratorsAuth 0",collection.getAdministrators(), notNullValue());
    assertThat("testRemoveAdministratorsAuth 1",collection.getAdministrators(), equalTo(result));
    collectionService.removeAdministrators(context, collection);
    assertThat("testRemoveAdministratorsAuth 2", collection.getAdministrators(), nullValue());
}