public function testDownloadAsStream()
{
$snippet = $this->snippetFromMethod(StorageObject::class, 'downloadAsStream');
$snippet->addLocal('object', $this->object);
$this->connection->downloadObject(Argument::any())->shouldBeCalled()->willReturn(\GuzzleHttp\Psr7\stream_for('test'));
$this->object->setConnection($this->connection->reveal());
$res = $snippet->invoke();
$this->assertEquals('test', $res->output());
}