public function testLookupBatch()
{
$snippet = $this->snippetFromMethod(DatastoreClient::class, 'lookupBatch');
$snippet->addLocal('datastore', $this->client);
$this->connection->lookup(Argument::any())->shouldBeCalled()->willReturn(['found' => [['entity' => ['key' => ['path' => [['kind' => 'Person', 'name' => 'Bob']]], 'properties' => ['firstName' => ['stringValue' => 'Bob']]]], ['entity' => ['key' => ['path' => [['kind' => 'Person', 'name' => 'John']]], 'properties' => ['firstName' => ['stringValue' => 'John']]]]]]);
$this->client->setConnection($this->connection->reveal());
$res = $snippet->invoke();
$this->assertEquals("Bob", explode("\n", $res->output())[0]);
$this->assertEquals("John", explode("\n", $res->output())[1]);
}