public function testEntity()
{
$snippet = $this->snippetFromMethod(DatastoreClient::class, 'entity');
$snippet->addLocal('datastore', $this->client);
$res = $snippet->invoke('entity');
$this->assertInstanceOf(Entity::class, $res->returnVal());
$this->assertEquals(['kind' => 'Person', 'name' => 'Bob'], $res->returnVal()->key()->keyObject()['path'][0]);
$this->assertEquals('Testguy', $res->returnVal()['lastName']);
}