@Test
public void validate_granted() throws RepositoryException {

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