/**
  * @test
  * @author Robert Lemke <*****@*****.**>
  * @expectedException \F3\FLOW3\Object\Exception
  */
 public function autoWiringThrowsExceptionForUnmatchedDependenciesOfRequiredSetterInjectedDependencies()
 {
     $this->mockObjectManager->expects($this->once())->method('getObject')->with('stdClass')->will($this->throwException(new \F3\FLOW3\Object\Exception()));
     $objectName = 'F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithUnmatchedRequiredSetterDependency';
     $setterParameters = array(array('position' => 0, 'byReference' => FALSE, 'array' => FALSE, 'optional' => FALSE, 'allowsNull' => FALSE, 'class' => 'stdClass'));
     $this->mockReflectionService->expects($this->at(1))->method('getMethodParameters')->with($objectName, 'injectRequiredSetterArgument')->will($this->returnValue($setterParameters));
     $objectConfiguration = new \F3\FLOW3\Object\Configuration\Configuration($objectName);
     $this->objectBuilder->createObject($objectName, $objectConfiguration);
 }