public function interceptorsWorkInPartialRenderedInStandaloneSection()
{
$httpRequest = Request::create(new Uri('http://localhost'));
$actionRequest = new ActionRequest($httpRequest);
$actionRequest->setFormat('html');
$standaloneView = new StandaloneView($actionRequest, $this->standaloneViewNonce);
$standaloneView->assign('hack', '<h1>HACK</h1>');
$standaloneView->setTemplatePathAndFilename(__DIR__ . '/Fixtures/NestedRenderingConfiguration/TemplateWithSection.txt');
$expected = 'Christian uses <h1>HACK</h1>';
$actual = trim($standaloneView->renderSection('test'));
$this->assertSame($expected, $actual, 'First rendering was not escaped.');
$partialCacheIdentifier = $standaloneView->getTemplatePaths()->getPartialIdentifier('Test');
$templateCache = $this->objectManager->get(CacheManager::class)->getCache('Fluid_TemplateCache');
$templateCache->remove($partialCacheIdentifier);
$standaloneView = new StandaloneView($actionRequest, $this->standaloneViewNonce);
$standaloneView->assign('hack', '<h1>HACK</h1>');
$standaloneView->setTemplatePathAndFilename(__DIR__ . '/Fixtures/NestedRenderingConfiguration/TemplateWithSection.txt');
$expected = 'Christian uses <h1>HACK</h1>';
$actual = trim($standaloneView->renderSection('test'));
$this->assertSame($expected, $actual, 'Second rendering was not escaped.');
}