public function testEmptyRegistrationAuthorityOutboundThrowsException()
{
$registrationInfo = new RegistrationInfo();
$registrationInfo->registrationAuthority = '';
$document = DOMDocumentFactory::fromString('<root />');
$this->setExpectedException('Exception', 'Missing required registration authority.');
$xml = $registrationInfo->toXML($document->firstChild);
}