public function testClassMethodsOnException($annotation)
{
$reflection = new ReflectionClass();
$reflection->class = 'Test';
$hierarchy = new ReflectionHierarchy();
$hierarchy->addReflectionClass($reflection);
$method = new ReflectionMethod();
$method->reflectionClass = $reflection;
$method->class = 'Test';
$method->name = 'benchFoo';
$method->comment = sprintf('/** %s */', $annotation);
$reflection->methods[$method->name] = $method;
$this->createDriver()->getMetadataForHierarchy($hierarchy);
}