@Test
void cleanup() throws IOException {

  ElasticsearchScrollRequest request = new ElasticsearchScrollRequest("test", factory);
  request.setScrollId("scroll123");
  client.cleanup(request);
  verify(restClient).clearScroll(any(), any());
  assertFalse(request.isScrollStarted());
}