public function testCachesResponsesWithASMaxAgeDirective() {
$this
->setNextResponse(200, array(
'Cache-Control' => 's-maxage=5',
));
$this
->request('GET', '/');
$this
->assertEquals(200, $this->response
->getStatusCode());
$this
->assertEquals('Hello World', $this->response
->getContent());
$this
->assertNotNull($this->response->headers
->get('Date'));
$this
->assertNotNull($this->response->headers
->get('X-Content-Digest'));
$this
->assertTraceContains('miss');
$this
->assertTraceContains('store');
$values = $this
->getMetaStorageValues();
$this
->assertCount(1, $values);
}