public function testConstructor()
 {
     $payment = new Payment($instruction = $this->getInstruction(), 123.45);
     $this->assertEquals(0.0, $payment->getApprovedAmount());
     $this->assertEquals(0.0, $payment->getApprovingAmount());
     $this->assertEquals(0.0, $payment->getCreditedAmount());
     $this->assertEquals(0.0, $payment->getCreditingAmount());
     $this->assertEquals(0.0, $payment->getDepositedAmount());
     $this->assertEquals(0.0, $payment->getDepositingAmount());
     $this->assertEquals(0.0, $payment->getReversingApprovedAmount());
     $this->assertEquals(0.0, $payment->getReversingCreditedAmount());
     $this->assertEquals(0.0, $payment->getReversingDepositedAmount());
     $this->assertEquals(Payment::STATE_NEW, $payment->getState());
     $this->assertEquals(123.45, $payment->getTargetAmount());
     $this->assertInstanceOf('Doctrine\\Common\\Collections\\ArrayCollection', $payment->getTransactions());
     $this->assertEquals(0, count($payment->getTransactions()));
     $this->assertFalse($payment->isAttentionRequired());
     $this->assertFalse($payment->isExpired());
     $this->assertNull($payment->getId());
     $this->assertSame($instruction, $payment->getPaymentInstruction());
 }