/**
  * @test
  * @group        metadata
  * @group        organization
  *
  * @dataProvider invalidDeserializationDataProvider
  * @expectedException InvalidArgumentException
  *
  * @param mixed $invalidData
  */
 public function deserialization_requires_valid_data($invalidData)
 {
     OrganizationDisplayName::deserialize($invalidData);
 }
 public static function deserialize($data)
 {
     Assertion::isArray($data);
     $displayNames = array_map(function ($displayName) {
         return OrganizationDisplayName::deserialize($displayName);
     }, $data);
     return new self($displayNames);
 }