public function testCreate()
{
$snippet = $this->snippetFromMethod(Subscription::class, 'create');
$snippet->addLocal('pubsub', $this->pubsub);
$return = ['foo' => 'bar'];
$this->connection->createSubscription(Argument::any())->shouldBeCalled()->willReturn($return);
$this->pubsub->setConnection($this->connection->reveal());
$res = $snippet->invoke('result');
$this->assertEquals($return, $res->returnVal());
}