### Question:
ClientQueryBuilder { @Deprecated public static ClientQueryGroup group(String id, String categorizer, ClientDataSourceField field) { return new ClientQueryGroup() .setDataSourceField(field) .setId(id) .setCategorizer(categorizer); }  abstract ClientQuery build(); @Deprecated static ClientDataSourceField source(String name); @Deprecated static ClientDataSourceField source(String name, String type); @Deprecated static ClientQueryField field(ClientDataSourceField field); @Deprecated static ClientQueryField field(String id, ClientDataSourceField field); @Deprecated static ClientQueryField field(String name); @Deprecated static ClientQueryAggregatedField aggregatedField(ClientDataSourceField field, String aggregateExpression); @Deprecated static ClientQueryAggregatedField aggregatedField(ClientDataSourceField field, ClientExpression aggregateExpression); @Deprecated static ClientQueryAggregatedField aggregatedField(String id, String fieldName, String aggregateFunction); @Deprecated static ClientOrder asc(ClientDataSourceField dsField); @Deprecated static ClientOrder asc(ClientQueryGroup queryField); @Deprecated static ClientOrder asc(String dsField); @Deprecated static ClientOrder desc(ClientDataSourceField dsField); @Deprecated static ClientOrder desc(ClientQueryGroup queryField); @Deprecated static ClientOrder desc(String dsField); @Deprecated static ClientOrder descAggLevel(); @Deprecated static ClientOrder ascAggLevel(); @Deprecated static ClientOrder ascByMember(List<String> path); @Deprecated static ClientOrder descByMember(List<String> path); @Deprecated static ClientTopOrBottomNOrder topN(List<String> path, int limit); @Deprecated static ClientTopOrBottomNOrder bottomN(List<String> path, int limit); @Deprecated static ClientQueryGroup group(String id, String categorizer, ClientDataSourceField field); @Deprecated static ClientQueryGroup group(ClientDataSourceField field); @Deprecated static ClientQueryGroup group(String id, ClientDataSourceField field); @Deprecated static ClientQueryGroup group(String fieldName, String categorizer); @Deprecated static ClientQueryGroup allGroup(); ClientQueryBuilder where(ClientExpression filters); ClientQueryBuilder where(String expression); ClientQueryBuilder where(Map<String, ClientExpressionContainer> parameters); ClientQueryBuilder orderBy(ClientOrder... order); ClientQueryBuilder where(ClientExpression filters, Map<String, ClientExpressionContainer> parameters); ClientQueryBuilder limit(Integer limit);  }### Answer:
@Test public void group_idAndCategorizerAndField_ClientQueryGroup() { ClientQueryGroup result = ClientQueryBuilder.group(CLIENT_ID, CLIENT_CATEGORIZER, CLIENT_DATA_SOURCE_FIELD); assertEquals(CLIENT_ID, result.getId()); assertEquals(CLIENT_CATEGORIZER, result.getCategorizer()); assertEquals(CLIENT_NAME, result.getFieldName()); }
@Test public void group_field_ClientQueryGroup() { ClientQueryGroup result = ClientQueryBuilder.group(CLIENT_DATA_SOURCE_FIELD); assertEquals(CLIENT_NAME, result.getFieldName()); }
@Test public void group_idAndAndField_ClientQueryGroup() { ClientQueryGroup result = ClientQueryBuilder.group(CLIENT_ID, CLIENT_DATA_SOURCE_FIELD); assertEquals(CLIENT_ID, result.getId()); assertEquals(CLIENT_NAME, result.getFieldName()); }
@Test public void group_idAndCategorizer_ClientQueryGroup() { ClientQueryGroup result = ClientQueryBuilder.group(CLIENT_NAME, CLIENT_CATEGORIZER); assertEquals(null, result.getId()); assertEquals(CLIENT_NAME, result.getName()); assertEquals(CLIENT_CATEGORIZER, result.getCategorizer()); }