/**
  * @covers ::update
  */
 public function testUpdate()
 {
     $mockdb = new \TMT\MockDB();
     $mockdb->expectPrepare("UPDATE notificationTypes SET name=:name, resource=:resource, verb=:verb WHERE guid=:guid");
     $mockdb->expectExecute(array(":name" => "type1", ":resource" => "resguid1", ":verb" => "read", ":guid" => "guid1"));
     $accessor = new NotificationType($mockdb);
     $accessor->update(new \TMT\model\NotificationType(array("guid" => "guid1", "name" => "type1", "resource" => "resguid1", "verb" => "read")));
     $mockdb->verify();
 }