/**
  * @expectedException \Governor\Framework\CommandHandling\NoHandlerForCommandException
  */
 public function testUnsubscribeAfterSubscribe()
 {
     $commandHandler = $this->getMock(CommandHandlerInterface::class);
     $this->subject->subscribe(get_class(new TestCommand('hi')), $commandHandler);
     $this->subject->unsubscribe(get_class(new TestCommand('hi')), $commandHandler);
     $this->subject->findCommandHandlerFor(GenericCommandMessage::asCommandMessage(new TestCommand('hi')));
 }
 public function testUnsubscribe_HandlerNotKnown()
 {
     $this->handlerRegistry->unsubscribe(TestCommand::class, new TestCommandHandler());
 }