SearchClient searchClient = new SearchClient(new Settings(), profiling);
SearchResponse search = searchClient.prepareSearch(IndexDefinition.RULE.getIndexName())
.setSearchType(SearchType.SCAN)
.setScroll(TimeValue.timeValueSeconds(3L))
.get();
searchClient.prepareSearchScroll(search.getScrollId()).get();
// expected to fail because elasticsearch is not correctly configured, but that does not matter
fail();
} catch (Exception e) {
assertThat(e).isInstanceOf(IllegalStateException.class);