/**
  * @param string $docComment
  * @param AnnotationList $annotations
  */
 private function cacheAnnotations($docComment, AnnotationList $annotations)
 {
     if (self::$cacheContainer === null) {
         return;
     }
     self::$cacheContainer->store($docComment, $annotations);
 }
 /**
  * Test if can remove a previous stored annotation list.
  */
 public function testRemoveAnnotationList()
 {
     /* @var \com\mohiva\common\lang\AnnotationReflector $class */
     $class = new ReflectionClass(self::TEST_CLASS);
     $docReflector = new ReflectionDocComment($class);
     $annotationList = $docReflector->getAnnotationList();
     $key = new HashKey(Hash::ALGO_SHA1, 'php://temp');
     $adapter = new ResourceAdapter(new TempResourceContainer(TempFileResource::TYPE));
     $container = new AnnotationContainer($adapter, $key);
     $container->store($class->getDocComment(), $annotationList);
     $container->remove($class->getDocComment());
     $this->assertFalse($container->exists($class->getDocComment()));
 }