acl = this.strategy.getACL(this.resources[0]);
assertEquals("Invalid number of entries", entriesNumber, acl.getEntries().size());
// now remove one of the entries.
ACLEntry entry = acl.getEntries().iterator().next();
acl.removeEntry(entry);
assertTrue("Failed to update the ACL", this.strategy.updateACL(acl));
// retrieve the ACL again and check it has one less entry.
acl = this.strategy.getACL(this.resources[0]);
assertEquals("Invalid number of entries", entriesNumber - 1, acl.getEntries().size());