*/
@Test
public void testConstructGroupQueryWithAllPossibleParameters() {
GroupOptions groupOptions = new GroupOptions();
SimpleQuery query = new SimpleQuery();
query.addCriteria(new SimpleStringCriteria("*:*"));
query.setGroupOptions(groupOptions);
groupOptions.setOffset(1);
groupOptions.setLimit(2);
groupOptions.addGroupByField("field_1");
groupOptions.addGroupByFunction(MaxFunction.max("field_1", "field_2"));
groupOptions.addGroupByQuery(new SimpleQuery("*:*"));
groupOptions.addSort(new Sort(Sort.Direction.DESC, "field_3"));
groupOptions.setTotalCount(true);
SolrQuery solrQuery = queryParser.constructSolrQuery(query);