/**
  * @test
  * @group        metadata
  * @group        contactperson
  *
  * @dataProvider \OpenConext\Value\TestDataProvider::notRfc822CompliantEmail()
  * @expectedException InvalidArgumentException
  *
  * @param mixed $invalidData
  */
 public function deserialization_requires_valid_data($invalidData)
 {
     EmailAddress::deserialize($invalidData);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $emailAddresses = array_map(function ($emailAddress) {
         return EmailAddress::deserialize($emailAddress);
     }, $data);
     return new self($emailAddresses);
 }