public function setUp()
 {
     parent::setUp();
     /** @var LoggerInterface|ObjectProphecy $logger */
     $this->logger = $this->prophesize("\\Psr\\Log\\LoggerInterface");
     /** @var EventDispatcher|ObjectProphecy $eventDispatcher */
     $this->eventDispatcher = $this->prophesize("\\Symfony\\Component\\EventDispatcher\\EventDispatcher");
     /** @var MiraklApiInterface|ObjectProphecy mirakl */
     $this->mirakl = $this->prophesize("\\HiPay\\Wallet\\Mirakl\\Api\\Mirakl\\ApiInterface");
     /** @var HiPayApiInterface|ObjectProphecy $hipay */
     $this->hipay = $this->prophesize("\\HiPay\\Wallet\\Mirakl\\Api\\HiPay\\ApiInterface");
     $this->apiFactory = $this->prophesize("\\HiPay\\Wallet\\Mirakl\\Api\\Factory");
     $this->apiFactory->getHiPay()->willReturn($this->hipay->reveal());
     $this->apiFactory->getMirakl()->willReturn($this->mirakl->reveal());
     /** @var VendorManagerInterface|ObjectProphecy $vendorManager */
     $this->vendorManager = $this->prophesize("HiPay\\Wallet\\Mirakl\\Vendor\\Model\\VendorManagerInterface");
     /** @var DocumentManagerInterface|ObjectProphecy $documentManager */
     $this->documentManager = $this->prophesize("HiPay\\Wallet\\Mirakl\\Vendor\\Model\\DocumentManagerInterface");
     /** @var OperationManagerInterface|ObjectProphecy $operationManager */
     $this->operationManager = $this->prophesize("\\HiPay\\Wallet\\Mirakl\\Cashout\\Model\\Operation\\ManagerInterface");
     /** @var ValidatorInterface|ObjectProphecy $transactionValidator */
     $this->transactionValidator = $this->prophesize("\\HiPay\\Wallet\\Mirakl\\Cashout\\Model\\Transaction\\ValidatorInterface");
     $this->operator = new Vendor("*****@*****.**", rand());
     $this->technical = new Vendor("*****@*****.**", rand());
 }
 /**
  * AbstractProcessor constructor.
  *
  * @param EventDispatcherInterface $dispatcher
  * @param LoggerInterface $logger
  * @param Factory $factory
  */
 public function __construct(EventDispatcherInterface $dispatcher, LoggerInterface $logger, Factory $factory)
 {
     parent::__construct($dispatcher, $logger);
     $this->mirakl = $factory->getMirakl();
     $this->hipay = $factory->getHiPay();
 }