### Question:
AuditBarGraphRequestQueryConverter extends AbstractDateRangeFacetQueryConverter<AuditBarGraphRequest> { @Override public SolrQuery convert(AuditBarGraphRequest request) { SolrQuery query = super.convert(request); addListFilterToSolrQuery(query, CLUSTER, request.getClusters()); addInFiltersIfNotNullAndEnabled(query, request.getUserList(), SolrConstants.AuditLogConstants.AUDIT_REQUEST_USER, StringUtils.isNotBlank(request.getUserList())); addIncludeFieldValues(query, request.getIncludeQuery()); addExcludeFieldValues(query, request.getExcludeQuery()); return query; }  @Override String getDateFieldName(); @Override String getTypeFieldName(); @Override LogType getLogType(); @Override SolrQuery convert(AuditBarGraphRequest request);  }### Answer:
@Test public void testConvert() { AuditBarGraphRequest request = new AuditBarGraphQueryRequest(); request.setUserList("joe,steven"); fillBaseLogRequestWithTestData(request); request.setUnit("+1HOUR"); SolrQuery query = underTest.convert(request); assertEquals("?q=*%3A*&facet=true&facet.pivot=%7B%21range%3Dr1%7Drepo&facet.mincount=1&facet.limit=-1" + "&facet.sort=index&facet.range=%7B%21tag%3Dr1%7DevtTime&f.evtTime.facet.range.start=2016-09-13T22%3A00%3A01.000Z" + "&f.evtTime.facet.range.end=2016-09-14T22%3A00%3A01.000Z&f.evtTime.facet.range.gap=%2B1HOUR&rows=0&start=0" + "&fq=cluster%3Acl1&fq=reqUser%3A%28joe+OR+steven%29&fq=log_message%3Amyincludemessage&fq=-log_message%3Amyexcludemessage", query.toQueryString()); }
@Test public void testConvertWithoutData() { AuditBarGraphRequest request = new AuditBarGraphQueryRequest(); SolrQuery query = underTest.convert(request); assertEquals(Integer.valueOf(0), query.getRows()); assertEquals(-1, query.getFacetLimit()); }