Query { public String[] getTerms() { return terms; } Query(final String query); String[] getTerms(); void setReturnAttributes(final String[] attrs); String[] getReturnAttributes(); void setSearchRestrictions(final String restrictions); String getSearchRestrictions(); void setFromResult(final Integer i); Integer getFromResult(); void setToResult(final Integer i); Integer getToResult(); @Override String toString();  }
@Test(groups = "querytest", dataProvider = "query-data") public void format(final Query query, final String[] terms) { Assert.assertEquals(query.getTerms(), terms); }