protected function setUp()
 {
     $this->fixturesDir = realpath(__DIR__ . '/../fixtures');
     $this->webDir = realpath(__DIR__ . '/../web');
     self::createClient();
     $this->container = self::$kernel->getContainer();
     $router = $this->container->get('router');
     /* @var $router RouterInterface */
     $this->container->get('event_dispatcher')->addListener(SitemapPopulateEvent::ON_SITEMAP_POPULATE, function (SitemapPopulateEvent $event) use($router) {
         $base_url = $router->generate('PrestaDemoBundle_homepage', array(), true);
         $urlVideo = new GoogleVideoUrlDecorator(new UrlConcrete($base_url . 'page_video1/'), $base_url . 'page_video1/thumbnail_loc?a=b&b=c', 'Title & spécial chars', 'The description & spécial chars', array('content_loc' => $base_url . 'page_video1/content?format=mov&a=b'));
         $urlVideo->setGalleryLoc($base_url . 'page_video1/gallery_loc/?p=1&sort=desc')->setGalleryLocTitle('Gallery title & spécial chars');
         $event->getGenerator()->addUrl($urlVideo, 'video');
     });
 }