public function testTypeHeader()
{
$response = new Response(array('type' => 'application/json'));
$result = (string) $response;
$this->assertPattern('/^HTTP\\/1\\.1 200 OK/', $result);
$this->assertPattern('/Content-Type: application\\/json(.*)$/ms', $result);
}