protected function setup()
 {
     $helper = new ObjectManager($this);
     $this->productRepository = $this->getMockBuilder('Magento\\Catalog\\Model\\ProductRepository')->setMethods(['get'])->disableOriginalConstructor()->getMock();
     $this->productData = $this->getMockBuilder('Magento\\Catalog\\Service\\V1\\Data\\Product')->setMethods(['getSku', 'getTypeId', '__wakeup', 'getCustomAttribute'])->disableOriginalConstructor()->getMock();
     $this->product = $this->getMockBuilder('Magento\\Catalog\\Model\\Product')->setMethods(['getSku', 'getTypeId', '__wakeup'])->disableOriginalConstructor()->getMock();
     $this->productLink1 = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Data\\Product\\Link')->disableOriginalConstructor()->setMethods(['getId', 'getSku', 'getOptionId'])->getMock();
     $this->productLink1->expects($this->any())->method('getSku')->will($this->returnValue('productLink1Sku'));
     $this->productLink2 = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Data\\Product\\Link')->disableOriginalConstructor()->setMethods(['getId', 'getSku', 'getOptionId'])->getMock();
     $this->productLink2->expects($this->any())->method('getSku')->will($this->returnValue('productLink2Sku'));
     $this->productLink3 = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Data\\Product\\Link')->disableOriginalConstructor()->setMethods(['getId', 'getSku'])->getMock();
     $this->productLink3->expects($this->any())->method('getSku')->will($this->returnValue('productLink3Sku'));
     $this->productOption1 = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Data\\Product\\Option')->disableOriginalConstructor()->getMock();
     $this->productOption1->expects($this->any())->method('getId')->will($this->returnValue('productOption1Sku'));
     $this->productOption2 = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Data\\Product\\Option')->disableOriginalConstructor()->getMock();
     $this->productOption2->expects($this->any())->method('getId')->will($this->returnValue('productOption2Sku'));
     $this->linkWriteService = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Product\\Link\\WriteService')->disableOriginalConstructor()->getMock();
     $this->optionWriteService = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Product\\Option\\WriteService')->disableOriginalConstructor()->getMock();
     $this->linkReadService = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Product\\Link\\ReadService')->disableOriginalConstructor()->getMock();
     $this->optionReadService = $this->getMockBuilder('Magento\\Bundle\\Service\\V1\\Product\\Option\\ReadService')->disableOriginalConstructor()->getMock();
     $this->productBuilder = $this->getMockBuilder('Magento\\Catalog\\Service\\V1\\Data\\ProductBuilder')->setMethods(['setCustomAttribute'])->disableOriginalConstructor()->getMock();
     $this->attributeValue = $this->getMockBuilder('Magento\\Framework\\Service\\Data\\Eav\\AttributeValue')->setMethods(['getValue'])->disableOriginalConstructor()->getMock();
     $this->saveProcessor = $helper->getObject('Magento\\Bundle\\Service\\V1\\Product\\BundleProductSaveProcessor', ['linkWriteService' => $this->linkWriteService, 'optionWriteService' => $this->optionWriteService, 'linkReadService' => $this->linkReadService, 'optionReadService' => $this->optionReadService, 'productRepository' => $this->productRepository]);
 }