public function testJsonEncodeWorksOnTopicRecipients()
{
$body = '{"to":"\\/topics\\/breaking-news","priority":"high","notification":{"title":"test","body":"a nice testing notification"}}';
$notification = new Notification('test', 'a nice testing notification');
$this->fixture->setNotification($notification);
$this->fixture->addRecipient(new Topic('breaking-news'));
$this->assertSame($body, json_encode($this->fixture));
}