@Test
public void testConstructSolrQueryWithCustomFieldFacetParameters() {
FacetQuery query = new SimpleFacetQuery(new Criteria("field_1").is("value_1"));
FieldWithFacetParameters fieldWithFacetParameters = new FieldWithFacetParameters("facet_2")
.addFacetParameter(new FacetParameter(FacetParams.FACET_ZEROS, "on"));
FacetOptions facetOptions = new FacetOptions(new SimpleField("facet_1"), fieldWithFacetParameters);
query.setFacetOptions(facetOptions);
SolrQuery solrQuery = queryParser.constructSolrQuery(query);
Assert.assertEquals("on", solrQuery.getParams("f." + fieldWithFacetParameters.getName() + ".facet.zeros")[0]);
}