@Test
@UseDataProvider("areActionsAllowedProvider")
public void testAreActionsAllowed(List<RequestedAction> queriedPermissions, List<Boolean> singlePermissionResults,
        boolean expected) {

    // given
    DocumentPermissions<Object> perm = new TestDocumentPermissions<>(singlePermissionResults);
    // when
    boolean actual = perm.areActionsAllowed(queriedPermissions);
    // then
    assertThat(actual, is(expected));
}