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

    Query query = new Query();
    query.setTable(TestUtils.TEST_TABLE_NAME);
    ResultSort resultSort = new ResultSort();
    resultSort.setOrder(ResultSort.Order.asc);
    resultSort.setField("_timestamp");
    query.setSort(resultSort);
    when(elasticsearchServer.getClient()).thenReturn(null);
    queryExecutor.execute(query);
}