/**
* One authorized entity with two principals. Remove second principal. Should get one
* authorized entity of first principal.
*/
public void testRemoveAcl5() {
Acl acl = new Acl("acl0", new ResourceInfo("resourceRule0", ResourceInfo.RESOURCE_TYPE_FEED),
new AuthorizedEntity[] {authorizedEntity_r_0_1});
aclTool.removeAcl(Arrays.asList(acl), 'r', USER1);
assertEquals(1, acl.getAuthorizedEntities().length);
assertEquals(1, acl.getAuthorizedEntities()[0].getEntities().length);