}
@Test
public void testWithSortMixedDirections() {
SimpleStringCriteria criteria = new SimpleStringCriteria("field_1:value_1");
Query query = new SimpleQuery(criteria);
query.addSort(new Sort("field_1"));
query.addSort(new Sort(Sort.Direction.DESC, "field_2", "field_3"));
SolrQuery solrQuery = queryParser.constructSolrQuery(query);
Assert.assertEquals("field_1 asc,field_2 desc,field_3 desc", solrQuery.getSortField());
Assert.assertEquals(3, solrQuery.getSorts().size());
}