*/
@Test(expected=XMLDBException.class)
public void groupMemberChownGidResource() throws XMLDBException {
final Collection test = DatabaseManager.getCollection(baseUri + "/db/securityTest1", "test2", "test2");
final Resource resource = test.getResource("test.xml");
final UserManagementService ums = (UserManagementService)test.getService("UserManagementService", "1.0");
// attempt to take gid ownership of /db/securityTest1/test.xml
ums.chgrp(resource, "users");
final Permission perms = ums.getPermissions(resource);
assertEquals("users", perms.getGroup().getName());
}