/**
* @return mixed
*/
public function duringInstantiation()
{
if ($factoryMethod = $this->wrappedObject->getFactoryMethod()) {
$method = is_array($factoryMethod) ? $factoryMethod[1] : $factoryMethod;
} else {
$method = '__construct';
}
$instantiator = new Instantiator();
$object = $instantiator->instantiate($this->wrappedObject->getClassName());
return $this->runDuring($object, $method, $this->wrappedObject->getArguments());
}