/**
  * @param string $exchangeName
  * @param StoredEvent $notification
  * @throws Exception
  */
 public function send($exchangeName, StoredEvent $notification)
 {
     if (11000 === $notification->id()) {
         throw new Exception();
     }
 }
 /**
  * @param string $exchangeName
  * @param StoredEvent $notification
  */
 public function send($exchangeName, StoredEvent $notification)
 {
     $this->channel->basic_publish(new AMQPMessage($notification->body(), ['type' => $notification->type(), 'timestamp' => $notification->occurredOn()->getTimestamp(), 'message_id' => $notification->id()]), $exchangeName);
 }