}
@Test
public void testConstructSorlQueryWithFieldSpecificHighlightOptions() {
SimpleHighlightQuery query = new SimpleHighlightQuery(new SimpleStringCriteria("field_1:value_1"));
HighlightOptions options = new HighlightOptions();
HighlightOptions.FieldWithHighlightParameters fieldWithHighlightParameters = new HighlightOptions.FieldWithHighlightParameters(
"field_2");
fieldWithHighlightParameters.setFormatter("formatter");
fieldWithHighlightParameters.setFragsize(10);
options.addField(fieldWithHighlightParameters);
query.setHighlightOptions(options);
SolrQuery solrQuery = queryParser.constructSolrQuery(query);
Assert.assertArrayEquals(new String[] { "field_2" }, solrQuery.getHighlightFields());
Assert.assertEquals(fieldWithHighlightParameters.getFormatter(),