}
public void testCheckPermission() {
Permission permission = new Permission("TestPermission");
Principal principal = new Principal("TestPrincipal");
AclEntry entry = new AclEntry(principal);
entry.addPermission(permission);
acl.addEntry(owner, entry);
Principal checkPrincipal = new Principal("TestPrincipal");
Permission checkPermission = new Permission("TestPermission");
assertEquals("Principal has permission from entry", 1, acl.checkPermission(checkPrincipal, checkPermission));