public function testGetRecipientEmails()
 {
     $emails = array("email");
     $recipientList = new RecipientList();
     $repo = $this->getMockBuilder('Oro\\Bundle\\NotificationBundle\\Entity\\Repository\\RecipientListRepository')->disableOriginalConstructor()->getMock();
     $this->emailNotification->expects($this->once())->method('getRecipientList')->will($this->returnValue($recipientList));
     $this->em->expects($this->once())->method('getRepository')->with('Oro\\Bundle\\NotificationBundle\\Entity\\RecipientList')->will($this->returnValue($repo));
     $repo->expects($this->once())->method('getRecipientEmails')->with($this->identicalTo($recipientList), $this->identicalTo($this->entity))->will($this->returnValue($emails));
     $this->assertEquals($emails, $this->adapter->getRecipientEmails());
 }