public function createCacheSegmentWithLifetimeStoresLifetimeAfterTagsInMetadata()
{
$contentCache = new ContentCache();
$mockSecurityContext = $this->createMock(Context::class);
$this->inject($contentCache, 'securityContext', $mockSecurityContext);
$segement = $contentCache->createCacheSegment('My content', '/foo/bar', array(42), array('Foo', 'Bar'), 60);
$this->assertContains('Foo,Bar;60' . ContentCache::CACHE_SEGMENT_SEPARATOR_TOKEN, $segement);
}