public function testGetTransactionPeerFromData()
 {
     $event = new TransactionEvent();
     $this->assertNull($event->getTransaction());
     $transaction = new TransactionEntity();
     $event->setData($transaction);
     $this->assertSame($transaction, $event->getTransaction());
 }
 /**
  * {@inheritdoc}
  * @return TransactionEvent
  */
 protected function getEvent()
 {
     $event = new TransactionEvent();
     $event->setTarget($this);
     return $event;
 }