/**
  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
  */
 protected function setUp()
 {
     $this->customerFactory = $this->getMock('Magento\\Customer\\Model\\CustomerFactory', ['create'], [], '', false);
     $this->manager = $this->getMock('Magento\\Framework\\Event\\ManagerInterface');
     $this->store = $this->getMockBuilder('Magento\\Store\\Model\\Store')->disableOriginalConstructor()->getMock();
     $this->storeManager = $this->getMock('Magento\\Store\\Model\\StoreManagerInterface');
     $this->random = $this->getMock('Magento\\Framework\\Math\\Random');
     $this->validator = $this->getMock('Magento\\Customer\\Model\\Metadata\\Validator', [], [], '', false);
     $this->validationResultsInterfaceFactory = $this->getMock('Magento\\Customer\\Api\\Data\\ValidationResultsInterfaceFactory', [], [], '', false);
     $this->addressRepository = $this->getMock('Magento\\Customer\\Api\\AddressRepositoryInterface');
     $this->customerMetadata = $this->getMock('Magento\\Customer\\Api\\CustomerMetadataInterface');
     $this->customerRegistry = $this->getMock('Magento\\Customer\\Model\\CustomerRegistry', [], [], '', false);
     $this->logger = $this->getMock('Psr\\Log\\LoggerInterface');
     $this->encryptor = $this->getMock('Magento\\Framework\\Encryption\\EncryptorInterface');
     $this->share = $this->getMock('Magento\\Customer\\Model\\Config\\Share', [], [], '', false);
     $this->string = $this->getMock('Magento\\Framework\\Stdlib\\StringUtils');
     $this->customerRepository = $this->getMock('Magento\\Customer\\Api\\CustomerRepositoryInterface');
     $this->scopeConfig = $this->getMockBuilder('Magento\\Framework\\App\\Config\\ScopeConfigInterface')->disableOriginalConstructor()->getMock();
     $this->transportBuilder = $this->getMock('Magento\\Framework\\Mail\\Template\\TransportBuilder', [], [], '', false);
     $this->dataObjectProcessor = $this->getMock('Magento\\Framework\\Reflection\\DataObjectProcessor', [], [], '', false);
     $this->registry = $this->getMock('Magento\\Framework\\Registry');
     $this->customerViewHelper = $this->getMock('Magento\\Customer\\Helper\\View', [], [], '', false);
     $this->dateTime = $this->getMock('Magento\\Framework\\Stdlib\\DateTime');
     $this->customer = $this->getMock('Magento\\Customer\\Model\\Customer', [], [], '', false);
     $this->objectFactory = $this->getMock('Magento\\Framework\\DataObjectFactory', [], [], '', false);
     $this->extensibleDataObjectConverter = $this->getMock('Magento\\Framework\\Api\\ExtensibleDataObjectConverter', [], [], '', false);
     $this->accountManagementHelper = $this->getMock('Magento\\Customer\\Helper\\AccountManagement', [], [], '', false);
     $this->customerSecure = $this->getMockBuilder('Magento\\Customer\\Model\\Data\\CustomerSecure')->disableOriginalConstructor()->getMock();
     $this->objectManagerHelper = new ObjectManagerHelper($this);
     $this->accountManagement = $this->objectManagerHelper->getObject('Magento\\Customer\\Model\\AccountManagement', ['customerFactory' => $this->customerFactory, 'eventManager' => $this->manager, 'storeManager' => $this->storeManager, 'mathRandom' => $this->random, 'validator' => $this->validator, 'validationResultsDataFactory' => $this->validationResultsInterfaceFactory, 'addressRepository' => $this->addressRepository, 'customerMetadataService' => $this->customerMetadata, 'customerRegistry' => $this->customerRegistry, 'logger' => $this->logger, 'encryptor' => $this->encryptor, 'configShare' => $this->share, 'stringHelper' => $this->string, 'customerRepository' => $this->customerRepository, 'scopeConfig' => $this->scopeConfig, 'transportBuilder' => $this->transportBuilder, 'dataProcessor' => $this->dataObjectProcessor, 'registry' => $this->registry, 'customerViewHelper' => $this->customerViewHelper, 'dateTime' => $this->dateTime, 'customerModel' => $this->customer, 'objectFactory' => $this->objectFactory, 'extensibleDataObjectConverter' => $this->extensibleDataObjectConverter]);
     $this->accountManagement->setAccountManagementHelper($this->accountManagementHelper);
 }