public function testConstructorWithCustomHeaders() {
$response = new JsonResponse(array(), 200, array(
'ETag' => 'foo',
));
$this
->assertSame('application/json', $response->headers
->get('Content-Type'));
$this
->assertSame('foo', $response->headers
->get('ETag'));
}