public function testCurrencyAmount()
 {
     $xml = new \XMLWriter();
     $xml->openMemory();
     $xml->setIndent(true);
     $xml->setIndentString("\t");
     $node = new CurrencyAmount(100, 'USD');
     $node->setValue(100)->setBaseCurrencyCode('USD');
     $node->writeXml($xml, 'CurrencyAmount');
     $dom = new \DOMDocument();
     $dom->loadXML($xml->outputMemory(true));
     $this->assertTrue($dom->schemaValidate(__DIR__ . '/../../../../XSD/DataType.xsd'));
 }