public function testExtensionAttributes() { $extensionAttributes = $this->category->extensionAttributes; $extensionAttributes['foo1'] = array('name' => 'foo1', 'value' => 'bar'); $extensionAttributes['foo2'] = array('name' => 'foo2', 'value' => 'rab'); $this->category->extensionAttributes = $extensionAttributes; $this->assertEquals('bar', $this->category->extensionAttributes['foo1']['value']); $this->assertEquals('rab', $this->category->extensionAttributes['foo2']['value']); $categoryXml = $this->category->saveXML(); $newCategory = new Zend_Gdata_App_Extension_Category(); $newCategory->transferFromXML($categoryXml); $this->assertEquals('bar', $newCategory->extensionAttributes['foo1']['value']); $this->assertEquals('rab', $newCategory->extensionAttributes['foo2']['value']); }