/**
  * @depends testMessagesIsLoadedFromFlash
  */
 public function testAddFlashableSuccessMessageWithCustomFormat(\Krucas\Notification\NotificationsBag $bag)
 {
     $bag->getSessionStore()->shouldReceive('flash')->once()->with('notifications_test', '[{"message":"all ok","format":"custom: :message","type":"success","flashable":true,"alias":null,"position":null}]');
     $bag->success('all ok', 'custom: :message');
     $this->assertCount(3, $bag);
     $this->assertCount(3, $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('success')->first());
     $this->assertEquals('all ok', $bag->get('success')->first()->getMessage());
     $this->assertEquals('success', $bag->get('success')->first()->getType());
     $this->assertEquals('custom: :message', $bag->get('success')->first()->getFormat());
     $this->assertTrue($bag->get('success')->first()->isFlashable());
     return $bag;
 }