protected function execute(InputInterface $input, OutputInterface $output)
 {
     try {
         $this->processor->process();
     } catch (Exception $e) {
         $this->logger->critical($e->getMessage());
     }
 }
 /**
  * @cover ::withdraw
  * @group withdraw
  */
 public function testWithdrawUnvalidatedBankInfo()
 {
     $amount = floatval(rand());
     $vendor = new Vendor("*****@*****.**", rand(), rand());
     $operation = new Operation($amount, new DateTime(), "000001", $vendor->getHipayId());
     $operation->setStatus(new Status(Status::TRANSFER_SUCCESS));
     /** @var VendorInterface $vendorArgument */
     $vendorArgument = Argument::is($vendor);
     $this->vendorManager->findByMiraklId(Argument::is($operation->getMiraklId()))->willReturn($vendor);
     $this->hipay->isAvailable(Argument::containingString("@"), Argument::any())->willReturn(false);
     $this->hipay->isIdentified(Argument::containingString("@"))->willReturn(true);
     $this->hipay->bankInfosStatus($vendorArgument)->willReturn(BankInfo::BLANK)->shouldBeCalled();
     $this->hipay->getBalance($vendorArgument)->willReturn($amount + 1);
     $this->hipay->withdraw(Argument::cetera())->shouldNotBeCalled();
     $this->setExpectedException("\\HiPay\\Wallet\\Mirakl\\Exception\\UnconfirmedBankAccountException");
     $this->cashoutProcessor->withdraw($operation);
 }