@Test
public void validate_notGranted() throws RepositoryException {

    Collection<String> actions = Arrays.asList();
    when(cqActions.getAllowedActions(Mockito.any(), Mockito.any())).thenReturn(actions);
    assertFalse(validator.validate(true).isSuccessful());
}