public PageListResponse<IndexSetFieldTypeSummary> getIndexSetFieldTypeSummary(final Set<String> streamIds,
                                                                                  final String fieldName,
                                                                                  final Predicate<String> indexSetPermissionPredicate) {
        return getIndexSetFieldTypeSummary(streamIds, fieldName, indexSetPermissionPredicate, 1, 50, DEFAULT_SORT.id(), DEFAULT_SORT.direction());
    }
@Test
    void testDoesNotReturnResultsForIndexSetsIfUserMissesPriviledges() {
        Predicate<String> indexSetPermissionPredicateAlwaysReturningFalse = x -> false;
        doReturn(Set.of("index_set_id")).when(streamService).indexSetIdsByIds(Set.of("stream_id"));
        final PageListResponse<IndexSetFieldTypeSummary> summary = toTest.getIndexSetFieldTypeSummary(Set.of("stream_id"), "field_name", indexSetPermissionPredicateAlwaysReturningFalse);

        assertThat(summary.elements()).isEmpty();
        verifyNoInteractions(indexFieldTypesService);
        verifyNoMoreInteractions(streamService);
        verifyNoInteractions(indexSetService);
    }