public function testUpdateDetachesObject()
 {
     $manager = new ContentManager($this->om);
     $content = new Content();
     $managedContent = new Content();
     $this->om->method('contains')->with($content)->willReturn(false);
     $this->om->expects($this->at(1))->method('merge')->with($content)->willReturn($managedContent);
     $this->om->expects($this->at(2))->method('flush')->with($managedContent);
     $this->om->expects($this->at(3))->method('detach')->with($managedContent);
     $manager->update($content);
 }