/**
  * Tests if scroll request is made properly.
  */
 public function testScroll()
 {
     $client = $this->getClient();
     $client->expects($this->once())->method('scroll')->with(['scroll_id' => 'test_id', 'scroll' => '5m'])->willReturn('test');
     $connection = new Connection($client, ['index' => 'foo', 'body' => []]);
     $result = $connection->scroll('test_id', '5m');
     $this->assertEquals('test', $result);
 }