  @Test
  public void testConvertHostNameAndComponentName() {

    // GIVEN
    HostLogFilesRequest request = new HostLogFilesQueryRequest();
    request.setHostName("hostName");
    request.setComponentName("componentName");
    // WHEN
    SolrQuery query = new DefaultQueryParser().doConstructSolrQuery(underTest.convert(request));
    // THEN
    assertEquals("?q=host%3A%28hostName%29+AND+type%3A%28componentName%29&rows=0&facet=true&facet.mincount=1&facet.limit=-1" +
        "&facet.pivot=type%2Cpath", query.toQueryString());
  }