public function testNotMappedThrowsException() { $cmf = new ClassMetadataFactory($this->dm); $this->setExpectedException('Doctrine\\ODM\\PHPCR\\Mapping\\MappingException'); $cmf->getMetadataFor('unknown'); }