public function testShouldRewind()
{
// Arrange
$collection = m::mock(Collection::class);
$driverCursor = m::mock(IteratorIterator::class);
$cursor = $this->getCursor(null, $collection, 'find', [[]], $driverCursor);
$this->setProtected($cursor, 'position', 10);
// Act
$driverCursor->shouldReceive('rewind')->once();
// Assert
$cursor->rewind();
$this->assertAttributeEquals(0, 'position', $cursor);
}