public function testJsonWithAdditionalFilter()
 {
     $controller = function () {
     };
     $application = new Application(new \ArrayObject(), new Request());
     $application->json('pattern', $controller)->method('method')->content('content');
     /**
      * @var Router $router
      */
     $router = $application->getServices()['router'];
     $route = $router->getRoutes()[0];
     $this->assertSame('pattern', $route->getPattern()->getUri());
     $this->assertSame('METHOD', $route->getPattern()->getMethod());
     $this->assertSame('content', $route->getPattern()->getContentType());
 }