public function testVisitNoRequest()
{
$this->request = null;
$responseMock = $this->getResponseMock();
$responseMock->expects($this->once())->method('setPublic');
$responseMock->expects($this->once())->method('setVary')->with('Accept');
$responseMock->expects($this->once())->method('setSharedMaxAge')->with($this->defaultOptions['content.default_ttl']);
$result = $this->visit(new CachedValue(new stdClass()));
self::assertNotNull($result);
}