public function testLoadMetadataForNonDocumentThrowsException()
{
$cm = new ClassMetadata('stdClass');
$reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();
$reader->addNamespace('Doctrine\\ODM\\CouchDB\\Mapping\\Annotations');
$annotationDriver = new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader);
$this->setExpectedException('Doctrine\\ODM\\CouchDB\\Mapping\\MappingException');
$annotationDriver->loadMetadataForClass('stdClass', $cm);
}