}
@Test
public void toQueryOptions_load_only_few_simple_fields() throws Exception {
RuleMapping mapping = new RuleMapping(languages, macroInterpreter, debtModel);
SimpleGetRequest request = new SimpleGetRequest();
request.setParam("p", "1");
request.setParam("ps", "10");
request.setParam("f", "repo,name,lang");
QueryContext queryContext = mapping.newQueryOptions(SearchOptions.create(request));
assertThat(queryContext.getFieldsToReturn()).containsOnly(
RuleNormalizer.RuleField.REPOSITORY.field(),
RuleNormalizer.RuleField.NAME.field(),