public function testShouldImplementNextMethodFromIterator()
{
// Arrange
$collection = m::mock(Collection::class);
$driverCursor = m::mock(IteratorIterator::class);
$cursor = $this->getCursor(null, $collection, 'find', [[]], $driverCursor);
$this->setProtected($cursor, 'position', 7);
// Act
$driverCursor->shouldReceive('next')->once();
// Assert
$cursor->next();
$this->assertEquals(8, $cursor->key());
}