TermsQuery implements Queryable { public static Init<?> builder() { return new TermsQueryBuilder(); } TermsQuery(QueryTypeArrayList<QueryTypeItem> queryBag); @Override String getQueryString(); static Init<?> builder();  }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_params_added_then_exception_is_thrown() throws MandatoryParametersAreMissingException { TermsQuery .builder() .build(); }