Assert.assertArrayEquals(new String[] { "field_1" }, parser.constructSolrQuery(q).getTermsFields());
}
@Test
public void testConstructSolrQueryProcessesMultipleFieldsCorrectly() {
TermsQuery q = SimpleTermsQuery.queryBuilder("field_1", "field_2", "field_3").build();
Assert.assertArrayEquals(new String[] { "field_1", "field_2", "field_3" }, parser.constructSolrQuery(q)
.getTermsFields());
}