Assert.assertEquals(facetOptions.getFacetPrefix(), solrQuery.getParams("facet.prefix")[0]);
}
@Test
public void testConstructSolrQueryWithFieldFacetParameters() {
FacetQuery query = new SimpleFacetQuery(new Criteria("field_1").is("value_1"));
FieldWithFacetParameters fieldWithFacetParameters = new FieldWithFacetParameters("facet_2").setPrefix("prefix")
.setSort(FacetSort.INDEX).setLimit(3).setOffset(2).setMethod("method").setMissing(true);
FacetOptions facetOptions = new FacetOptions(new SimpleField("facet_1"), fieldWithFacetParameters);
query.setFacetOptions(facetOptions);
SolrQuery solrQuery = queryParser.constructSolrQuery(query);
Assert.assertNotNull(solrQuery);
assertQueryStringPresent(solrQuery);
assertPaginationNotPresent(solrQuery);