@Test
public void testPermissionsVsDeny() throws Exception {

    PermissionProvider pp = service.getPermissionProvider();
    List<UserVisiblePermission> vp = pp.getUserVisiblePermissionDescriptors();
    assertNotNull(vp);
    UserVisiblePermission deleteVP = null;
    for (UserVisiblePermission uvp : vp) {
        if (uvp.getId().equals("ReadRemove")) {
            deleteVP = uvp;
            break;
        }
    }
    assertNotNull(deleteVP);
    assertEquals("Remove", deleteVP.getDenyPermission());
    assertEquals("ReadRemove", deleteVP.getPermission());
}