assertFalse("Removing null from an ACL should fail.", acl.removeAce(null));
}
@Test
public void testMerge() {
final InMemoryAce aceNew = new InMemoryAce("Hugo", Permission.WRITE); // will be added
final InMemoryAce aceRCopy = new InMemoryAce(BERTA, Permission.READ); // is same
final InMemoryAce aceChange = new InMemoryAce(CHRISTIAN, Permission.ALL); // changes permission
InMemoryAcl acl1 = createDefaultAcl();
InMemoryAcl acl2 = new InMemoryAcl(new ArrayList<InMemoryAce>() {{ add(aceNew); add(aceRCopy); add(aceChange); }});
acl1.mergeAcl(acl2);
assertEquals(5, acl1.getAces().size());