public function it_takes_a_routing_definition_on_instantiation()
{
$router = new CommandRouter(['ProophTest\\ServiceBus\\Mock\\DoSomething' => 'DoSomethingHandler']);
$actionEvent = new DefaultActionEvent(MessageBus::EVENT_ROUTE, new CommandBus(), [MessageBus::EVENT_PARAM_MESSAGE_NAME => 'ProophTest\\ServiceBus\\Mock\\DoSomething']);
$router->onRouteMessage($actionEvent);
$this->assertEquals("DoSomethingHandler", $actionEvent->getParam(MessageBus::EVENT_PARAM_MESSAGE_HANDLER));
}