/**
  * @covers WindowsAzure\Common\Internal\Atom\Category::writeXml
  */
 public function testCategoryWriteXmlSuccessAllProperties()
 {
     // Setup
     $category = new Category();
     $category->setTerm('testTerm');
     $category->setScheme('testScheme');
     $category->setLabel('testLabel');
     $category->setUndefinedContent('testUndefinedContent');
     $actual = new Category();
     $xmlWriter = new \XMLWriter();
     $xmlWriter->openMemory();
     $expected = '<atom:category term="testTerm" scheme="testScheme" label="testLabel" xmlns:atom="http://www.w3.org/2005/Atom">testUndefinedContent</atom:category>';
     // Test
     $category->writeXml($xmlWriter);
     $actual = $xmlWriter->outputMemory();
     // Assert
     $this->assertEquals($expected, $actual);
 }