public function testSetSearchManager()
{
$smMock = $this->getMock('Doctrine\\Search\\SearchManager', array(), array(), '', false);
$this->classMetadataFactory->setSearchManager($smMock);
$reflClass = new \ReflectionClass($this->classMetadataFactory);
$reflProperty = $reflClass->getProperty('sm');
$reflProperty->setAccessible(true);
$sm = $reflProperty->getValue($this->classMetadataFactory);
$this->assertInstanceOf('Doctrine\\Search\\SearchManager', $sm);
}