/**
  * @dataProvider provideForMethodProxy
  */
 public function testMethodProxy($method, $clientMethod)
 {
     $this->client->expects($this->once())->method($clientMethod)->with($this->transaction, []);
     $this->transaction->{$method}();
 }
 public function testCommitWithdrawal()
 {
     $withdrawal = new Withdrawal();
     $this->client->expects($this->once())->method('commitWithdrawal')->with($withdrawal, []);
     $this->account->commitWithdrawal($withdrawal);
 }