public function testCursor()
{
$snippet = $this->snippetFromMethod(Entity::class, 'cursor');
$snippet->addLocal('entity', $this->entity);
$res = $snippet->invoke('cursor');
$this->assertEquals($this->options['cursor'], $res->returnVal());
}