@Test(expected = QueryStoreException.class)
public void testHistogramActionAnyException() throws QueryStoreException, JsonProcessingException {

    HistogramRequest histogramRequest = new HistogramRequest();
    histogramRequest.setTable(TestUtils.TEST_TABLE_NAME);
    histogramRequest.setPeriod(Period.minutes);
    when(elasticsearchServer.getClient()).thenReturn(null);
    queryExecutor.execute(histogramRequest);
}