ElasticsearchScrollRequest implements ElasticsearchRequest { public boolean isScrollStarted() { return (scrollId != null); }  @Override ElasticsearchResponse search(Function<SearchRequest, SearchResponse> searchAction,
                                      Function<SearchScrollRequest, SearchResponse> scrollAction); @Override void clean(Consumer<String> cleanAction); SearchRequest searchRequest(); boolean isScrollStarted(); SearchScrollRequest scrollRequest(); void reset(); static final TimeValue DEFAULT_SCROLL_TIMEOUT; }
@Test void isScrollStarted() { assertFalse(request.isScrollStarted()); request.setScrollId("scroll123"); assertTrue(request.isScrollStarted()); }