public function testProperties()
 {
     $id = new String('foo');
     $time = new \DateTimeImmutable();
     $author = new String('*****@*****.**');
     $url = Url::fromNative('http://www.some.url');
     $cdbXml = new String(file_get_contents(__DIR__ . '/actor.xml'));
     $cdbXmlNamespaceUri = new String('http://www.cultuurdatabank.com/XMLSchema/CdbXSD/3.2/FINAL');
     $event = new ActorUpdatedEnrichedWithCdbXml($id, $time, $author, $url, $cdbXml, $cdbXmlNamespaceUri);
     $this->assertEquals($id, $event->getActorId());
     $this->assertEquals($time, $event->getTime());
     $this->assertEquals($author, $event->getAuthor());
     $this->assertEquals($url, $event->getUrl());
     $this->assertEquals($cdbXml, $event->getCdbXml());
     $this->assertEquals($cdbXmlNamespaceUri, $event->getCdbXmlNamespaceUri());
 }
 /**
  * @param ActorUpdated $actorUpdated
  * @param DomainMessage $message
  */
 private function applyActorUpdated(ActorUpdated $actorUpdated, DomainMessage $message)
 {
     $this->setLogContextFromDomainMessage($message);
     $xml = $this->getActorXml($actorUpdated->getUrl());
     $enrichedActorUpdated = ActorUpdatedEnrichedWithCdbXml::fromActorUpdated($actorUpdated, $xml, new StringLiteral(\CultureFeed_Cdb_Xml::namespaceUriForVersion('3.3')));
     $this->publish($enrichedActorUpdated, $message->getMetadata());
 }