protected function setUp()
    {
        $this->services['service']->register(array(
            'config' => Config::class,
            'routingFactory' => function(){ return new Factory();},
            'map' => function() { return $this['routingFactory']->createGroup();},
            'request' => function(){ return isset($_SERVER['REQUEST_URI']) ? ServerRequest::createFromGlobals() : null;},
            'url' => function() { return $this->create('url.factory', array($this->map, $this->request ? : null, $this->config->get('app.url', null)));},
        ));

        $this->services['factory']->register(array(
            'runtime.context' => Context::class,
            'runtime.response' => function(){ return Response::createEmptyResponse();},
            'url.factory' => UrlFactory::class
        ));

        $this->map->addExecuteHandler('closure', ClosureHandler::class);
    }