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

    TrendRequest trendRequest = new TrendRequest();
    trendRequest.setTable(null);
    BetweenFilter betweenFilter = new BetweenFilter();
    betweenFilter.setFrom(1L);
    betweenFilter.setTo(System.currentTimeMillis());
    betweenFilter.setTemporal(true);
    betweenFilter.setField("_timestamp");
    trendRequest.setField("os");
    trendRequest.setFilters(Collections.<Filter>singletonList(betweenFilter));
    when(elasticsearchServer.getClient()).thenReturn(null);
    queryExecutor.execute(trendRequest);
}