public function testJsonEncodeHandlesTTL()
{
$body = '{"to":"\\/topics\\/testing","data":{"foo":"bar"},"priority":"high","time_to_live":3}';
$this->fixture->setData(['foo' => 'bar'])->setTimeToLive(3);
$this->fixture->addRecipient(new Topic('testing'));
$this->assertSame($body, json_encode($this->fixture));
}