AuthorizationEntity authorization = new AuthorizationEntity(AUTH_TYPE_REVOKE);
assertFalse(authorization.isPermissionRevoked(ALL));
List<Permission> perms = Arrays.asList(authorization.getPermissions(Permissions.values()));
assertEquals(0, perms.size());
authorization.removePermission(READ);
perms = Arrays.asList(authorization.getPermissions(Permissions.values()));
assertTrue(perms.contains(READ));
assertTrue(perms.contains(ALL));
assertEquals(2, perms.size());