public SearchSourceBuilder create(SearchesConfig config) {
        return create(SearchCommand.from(config));
    }
@Test
    void searchIncludesProperSourceFields() {
        final SearchSourceBuilder search = this.searchRequestFactory.create(ChunkCommand.builder()
                .indices(Collections.singleton("graylog_0"))
                .range(RANGE)
                .fields(List.of("foo", "bar"))
                .build());

        assertJsonPath(search, request -> {
            request.jsonPathAsListOf("$._source.includes", String.class)
                    .containsExactly("foo", "bar");
            request.jsonPathAsListOf("$._source.excludes", String.class)
                    .isEmpty();
        });
    }