public function testEmailGetterAndSetter() { $email = $this->getMock('Oro\\Bundle\\EmailBundle\\Entity\\Email'); $entity = new EmailRecipient(); $entity->setEmail($email); $this->assertTrue($email === $entity->getEmail()); }