}
@Test
public void testCheckPermissions() {
InMemoryAcl acl = createDefaultAcl();
assertTrue(acl.hasPermission(ANDREAS, Permission.NONE));
assertFalse(acl.hasPermission(ANDREAS, Permission.READ));
assertFalse(acl.hasPermission(ANDREAS, Permission.WRITE));
assertFalse(acl.hasPermission(ANDREAS, Permission.ALL));
assertTrue(acl.hasPermission(BERTA, Permission.NONE));
assertTrue(acl.hasPermission(BERTA, Permission.READ));
assertFalse(acl.hasPermission(BERTA, Permission.WRITE));
assertFalse(acl.hasPermission(BERTA, Permission.ALL));
assertTrue(acl.hasPermission(CHRISTIAN, Permission.NONE));
assertTrue(acl.hasPermission(CHRISTIAN, Permission.READ));
assertTrue(acl.hasPermission(CHRISTIAN, Permission.WRITE));
assertFalse(acl.hasPermission(CHRISTIAN, Permission.ALL));
assertTrue(acl.hasPermission(DOROTHEE, Permission.NONE));
assertTrue(acl.hasPermission(DOROTHEE, Permission.READ));
assertTrue(acl.hasPermission(DOROTHEE, Permission.WRITE));
assertTrue(acl.hasPermission(DOROTHEE, Permission.ALL));
}