public function testSetCache()
{
$serviceManager = new ServiceManager();
$config = array('my/path' => array('cache' => 'Apc'));
$mockAsset = $this->getMockBuilder(FileAsset::class)->disableOriginalConstructor()->getMock();
$mockAsset->mimetype = 'image/png';
$assetManager = new AssetCacheManager($serviceManager, $config);
$assetCache = $assetManager->setCache('my/path', $mockAsset);
$this->assertTrue($assetCache instanceof AssetCache);
$this->assertEquals($mockAsset->mimetype, $assetCache->mimetype);
}