public function it_returns_early_when_message_name_is_empty()
{
$messageProducer = $this->prophesize(MessageProducer::class);
$router = new AsyncSwitchMessageRouter(new SingleHandlerRouter(), $messageProducer->reveal());
$actionEvent = new DefaultActionEvent(MessageBus::EVENT_INITIALIZE, new CommandBus(), [MessageBus::EVENT_PARAM_MESSAGE => ['message_name' => 'custom-message', 'payload' => ["some data"]]]);
$router->onRouteMessage($actionEvent);
$this->assertEmpty($actionEvent->getParam(MessageBus::EVENT_PARAM_MESSAGE_HANDLER));
}