public function testMarshallingChildren()
{
$discoHints = new DiscoHints();
$keywords = new Keywords();
$keywords->lang = "nl";
$keywords->Keywords = array("voorbeeld", "specimen");
$discoHints->children = array($keywords);
$document = DOMDocumentFactory::fromString('<root />');
$xml = $discoHints->toXML($document->firstChild);
$discoElements = Utils::xpQuery($xml, '/root/*[local-name()=\'DiscoHints\' and namespace-uri()=\'urn:oasis:names:tc:SAML:metadata:ui\']');
$this->assertCount(1, $discoElements);
$discoElement = $discoElements[0];
$this->assertEquals("mdui:Keywords", $discoElement->firstChild->nodeName);
$this->assertEquals("voorbeeld specimen", $discoElement->firstChild->textContent);
}