@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage The annotation "@NameFoo" in property Doctrine\Tests\Common\Annotations\TestAnnotationNotImportedClass::$field was never imported.
public function testImportDetectsNotImportedAnnotation() {
$reader = $this
->getReader();
$reader
->getPropertyAnnotations(new \ReflectionProperty('Doctrine\\Tests\\Common\\Annotations\\TestAnnotationNotImportedClass', 'field'));
}