public function testCreate()
{
$this->connection->createTopic(Argument::withEntry('foo', 'bar'))->willReturn(['name' => 'projects/project-name/topics/topic-name']);
$this->connection->getTopic()->shouldNotBeCalled();
$this->topic->setConnection($this->connection->reveal());
$res = $this->topic->create(['foo' => 'bar']);
// Make sure the topic data gets cached!
$this->topic->info();
$this->assertEquals('projects/project-name/topics/topic-name', $res['name']);
}