public function testGenerateFragmentUriWithARequest() {
$request = Request::create('/');
$request->attributes
->set('_format', 'json');
$controller = new ControllerReference('controller', array(), array());
$this
->assertEquals('http://localhost/_fragment?_path=_format%3Djson%26_controller%3Dcontroller', $this
->getRenderer()
->doGenerateFragmentUri($controller, $request));
}