/**
* @see DATASOLR-121
*/
@Test
public void testGroupQueryWithFacets() {
solrTemplate.saveBean(new ExampleSolrBean("id_1", "name1", "category1", 2, true));
solrTemplate.saveBean(new ExampleSolrBean("id_2", "name1", "category1", 2, true));
solrTemplate.saveBean(new ExampleSolrBean("id_3", "name1", "category1", 1, true));
solrTemplate.saveBean(new ExampleSolrBean("id_4", "name2", "category2", 1, false));
solrTemplate.saveBean(new ExampleSolrBean("id_5", "name2", "category2", 2, false));
solrTemplate.saveBean(new ExampleSolrBean("id_6", "name2", "category1", 1, true));
solrTemplate.commit();
SimpleFacetQuery groupQuery = new SimpleFacetQuery(new SimpleStringCriteria("*:*"));
GroupOptions groupOptions = new GroupOptions();
groupQuery.setGroupOptions(groupOptions);