public function testEdit()
 {
     Zend_Feed::setHttpClient(new TestClient());
     $contents = file_get_contents(dirname(__FILE__) . '/_files/AtomPublishingTest-before-update.xml');
     /* The base feed URI is the same as the POST URI, so just supply the
      * Zend_Feed_Entry_Atom object with that. */
     $entry = new Zend_Feed_Entry_Atom($this->_uri, $contents);
     /* Initial state. */
     $this->assertEquals('2005-05-23T16:26:00-08:00', $entry->updated(), 'Initial state of updated timestamp does not match');
     $this->assertEquals('http://fubar.com/myFeed/1/1/', $entry->link('edit'), 'Initial state of edit link does not match');
     /* Just change the entry's properties directly. */
     $entry->content = '1.2';
     /* Then save the changes. */
     $entry->save();
     /* New state. */
     $this->assertEquals('1.2', $entry->content(), 'Content change did not stick');
     $this->assertEquals('2005-05-23T16:27:00-08:00', $entry->updated(), 'New updated link is not correct');
     $this->assertEquals('http://fubar.com/myFeed/1/2/', $entry->link('edit'), 'New edit link is not correct');
 }