public function testFormatWithNotAcceptable()
{
$request = Request::createFromGlobals();
$request->headers->set('Accept', 'yaml');
$jsonXmlFormatter = new JsonXml($this->config, $request);
$this->assertContains('"code":0,"message":"Not Acceptable","details":["yaml is not supported"]', $jsonXmlFormatter->format(new \Exception()));
}