public function testIterability()
 {
     $response = $this->createResponseChainMock(1);
     $cursor = new Cursor($response, $this->objectPrototype);
     $cursor->next();
     $cursor->rewind();
     $this->assertEquals($cursor->getIndexLeft(), $cursor->key());
     $cursor->end();
     $this->assertEquals($cursor->getIndexRight(), $cursor->key());
     $index = rand($cursor->getIndexLeft(), $cursor->getIndexRight());
     $cursor->seekTo($index);
     $this->assertEquals($index, $cursor->key());
     // Fetch after
     $cursor = new Cursor($response, $this->objectPrototype);
     $cursor->fetchAfter();
     $this->assertFalse($response === $cursor->getLastResponse());
 }