private static SearchRequest getSearchRequest() {
        final QueryKey queryKey = new QueryKey("Some UUID");
        final Query query = Query.builder()
                .dataSource(new DocRef("docRefType", "docRefUuid", "docRefName"))
                .expression(ExpressionOperator.builder()
                        .addTerm("field1", ExpressionTerm.Condition.EQUALS, "value1")
                        .addTerm("field2", ExpressionTerm.Condition.BETWEEN, "value2")
                        .build())
                .build();

        List<ResultRequest> resultRequestList = new ArrayList<>();
        final DateTimeSettings dateTimeSettings = DateTimeSettings.builder().build();
        SearchRequest searchRequest = new SearchRequest(
                null,
                queryKey,
                query,
                resultRequestList,
                dateTimeSettings,
                false);
        return searchRequest;
    }
This is not currently a test. It is a way of exercising the query api, i.e. it is support for manual testing.
stroom-app/src/test/java/stroom/index/TestStroomIndexViewResource.java