/**
  * @covers HtImgModule\Service\CacheManager::cacheExists
  */
 public function testCacheExists()
 {
     $options = new ModuleOptions();
     $cacheManager = new CacheManager($options);
     $imagine = new Imagine();
     $image = $imagine->open(RESOURCES_DIR . '/Archos.jpg');
     $options->setWebRoot(RESOURCES_DIR);
     $options->setCachePath('.');
     $cacheManager->createCache('awesome/archos-crop.jpg', 'crop', $image);
     $cacheFile = RESOURCES_DIR . '/crop/awesome/archos-crop.jpg';
     $this->assertTrue($cacheManager->cacheExists('awesome/archos-crop.jpg', 'crop'));
     $this->assertFalse($cacheManager->cacheExists('awesome/random-crop.jpg', 'crop'));
 }