public function testDefaultContentType() {
$headerMock = $this
->getMock('Symfony\\Component\\HttpFoundation\\ResponseHeaderBag', array(
'set',
));
$headerMock
->expects($this
->at(0))
->method('set')
->with('Content-Type', 'text/html');
$headerMock
->expects($this
->at(1))
->method('set')
->with('Content-Type', 'text/html; charset=UTF-8');
$response = new Response('foo');
$response->headers = $headerMock;
$response
->prepare(new Request());
}