public function testIllegalEntity() { $mapper = new AnnotationMapper(); $entity = new VeryBadEntity(); $mapper->getEntityMetadata($entity); }