public void testConstructSolrQueryWithStatFieldsAndFacets() {
StatsOptions statsOptions = new StatsOptions()//
.addField(new SimpleField("field_1"))//
.addFacet(new SimpleField("field_2"));
SimpleQuery query = new SimpleQuery("*:*");
query.setStatsOptions(statsOptions);
SolrQuery solrQuery = queryParser.constructSolrQuery(query);
String[] fields = solrQuery.getParams(StatsParams.STATS_FIELD);
String[] facets = solrQuery.getParams(StatsParams.STATS_FACET);