assertEquals(2, acl.size());
assertEquals(Permission.READ, acl.getPermission(ANDREAS));
assertEquals(Permission.WRITE, acl.getPermission(DOROTHEE));
try {
List<Ace> aces2 = Arrays.asList(new Ace[] { new AccessControlEntryImpl(null, Arrays.asList(new String[] { "cmis:read"}))});
acl = InMemoryAcl.createFromCommonsAcl(new AccessControlListImpl(aces2));
fail("create Ace will null principal should raise exception.");
} catch (RuntimeException e) { }
try {
List<Ace> aces2 = Arrays.asList(new Ace[] { new AccessControlEntryImpl(new AccessControlPrincipalDataImpl(ANDREAS), null)});
acl = InMemoryAcl.createFromCommonsAcl(new AccessControlListImpl(aces2));
fail("create Ace will null permission should raise exception.");
} catch (RuntimeException e) { }
}