public function shouldThrowExceptionWhenControllerNotFound()
{
//given
$routeRule = new RouteRule('GET', '/simple_test/action', 'not_exists', 'action', false);
$factory = $this->injector->getInstance('\\Ouzo\\ControllerFactory');
//when
CatchException::when($factory)->createController($routeRule);
//then
CatchException::assertThat()->isInstanceOf('\\Ouzo\\ControllerNotFoundException');
CatchException::assertThat()->hasMessage('Controller [NotExists] for URI [/simple_test/action] does not exist!');
}