public function testQueryWithEndCursor()
{
$query = self::$client->query()->kind(self::$kind)->limit(1);
$results = iterator_to_array(self::$client->runQuery($query));
$cursorQuery = self::$client->query()->kind(self::$kind)->end($results[0]->cursor());
$results = $this->runQueryAndSortResults($cursorQuery);
$this->assertEquals(self::$data[0], $results[0]->get());
$this->assertEquals(1, count($results));
}