public function testLoadMetadataForNonDocumentThrowsException()
 {
     $cm = new ClassMetadata('stdClass');
     $cm->initializeReflection(new RuntimeReflectionService());
     $reader = new \Doctrine\Common\Annotations\AnnotationReader(new \Doctrine\Common\Cache\ArrayCache());
     $annotationDriver = new \Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver($reader);
     $this->setExpectedException('Doctrine\\ODM\\PHPCR\\Mapping\\MappingException');
     $annotationDriver->loadMetadataForClass('stdClass', $cm);
 }