public function testESIHeaderIsKeptInSubrequest() {
$expectedSubRequest = Request::create('/');
$expectedSubRequest->headers
->set('Surrogate-Capability', 'abc="ESI/1.0"');
$expectedSubRequest->headers
->set('x-forwarded-for', array(
'127.0.0.1',
));
$expectedSubRequest->server
->set('HTTP_X_FORWARDED_FOR', '127.0.0.1');
$kernel = $this
->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
$kernel
->expects($this
->any())
->method('handle')
->with($expectedSubRequest);
$strategy = new InlineFragmentRenderer($kernel);
$request = Request::create('/');
$request->headers
->set('Surrogate-Capability', 'abc="ESI/1.0"');
$strategy
->render('/', $request);
}