public function testThrowsAnExceptionInStrictModeWhenTheUserAgentDoesNotSupportAnyOfImbosMediaTypes()
{
$this->contentNegotiation->expects($this->any())->method('isAcceptable')->will($this->returnValue(false));
$this->response->expects($this->once())->method('setVary')->with('Accept');
$requestHeaders = $this->getMock('Symfony\\Component\\HttpFoundation\\HeaderBag');
$requestHeaders->expects($this->once())->method('get')->with('Accept', '*/*')->will($this->returnValue('text/xml'));
$this->request->headers = $requestHeaders;
$this->responseFormatter->negotiate($this->event);
}