/**
  * Test if the managers has been initialized successfully.
  *
  * @return void
  */
 public function testInitializeManagers()
 {
     // prepare the lookup names
     $lookupNames = array(AnnotationKeys::NAME => 'MockManager', AnnotationKeys::BEAN_NAME => 'MockManager', AnnotationKeys::BEAN_INTERFACE => 'MockInterface', AnnotationKeys::MAPPED_NAME => 'MappedMockManager');
     // define the methods to mock
     $methodsToMock = array('getLookup', 'getParamsAsArray', 'getBeanName', 'getMappedName', 'getBeanInterface', 'getFactory', 'getType', 'getName', 'toLookupNames');
     // create a mock manager configuration
     $mockManagerConfiguration = $this->getMock('TechDivision\\Application\\Interfaces\\ManagerConfigurationInterface', $methodsToMock);
     $mockManagerConfiguration->expects($this->any())->method('toLookupNames')->will($this->returnValue($lookupNames));
     // register the mock manager instance
     $this->application->addManager($mockManager = new MockManager(), $mockManagerConfiguration);
     $this->application->initializeManagers();
     // check that the mock manager has been initialized
     $this->assertTrue($mockManager->isInitialized());
 }