ElasticScroll implements DatabaseScrolling { @Override public DatabaseScrolling withFetchSource(final boolean fetchSource) { search.setFetchSource(fetchSource); return this; } ElasticScroll(
    final Client client,
    final SearchRequestBuilder search,
    final TimeValue timeValue); @Override DatabaseScrolling withSort(final FieldSortBuilder s); @Override DatabaseScrolling withScrollSize(final int size); @Override DatabaseScrolling withKeepAlive(final long time, final TimeUnit unit); @Override DatabaseScrolling withTypes(final String... types); @Override DatabaseScrolling withFetchSource(final boolean fetchSource); @Override DatabaseScrolling withQuery(final QueryBuilder query); @Override void scroll(final DatabaseScroll scroll);  }
@Test public void shouldFetchSource() { scroll.withFetchSource(true); verify(search).setFetchSource(true); }