public function testExists()
{
$this->connection->getTopic(Argument::withEntry('foo', 'bar'))->willReturn(['name' => 'projects/project-name/topics/topic-name']);
$this->topic->setConnection($this->connection->reveal());
$this->assertTrue($this->topic->exists(['foo' => 'bar']));
}