@Test
public void testGetPermissionsToCheck() {

    List<String> perms = Arrays.asList(service.getPermissionsToCheck(SecurityConstants.READ));
    assertEquals(4, perms.size());
    assertTrue(perms.contains(SecurityConstants.READ));
    assertTrue(perms.contains(SecurityConstants.EVERYTHING));
}