/**
  * @covers ::get
  */
 public function testGet()
 {
     $mockdb = new \TMT\MockDB();
     $mockdb->expectPrepare("SELECT * FROM notificationTypes WHERE guid=:guid");
     $mockdb->expectExecute(array(':guid' => "guid1"));
     $mockdb->setReturnData(array((object) array("guid" => "guid1", "name" => "type1", "resource" => "resguid1", "verb" => "read")));
     $expected = new \TMT\model\NotificationType(array("guid" => "guid1", "name" => "type1", "resource" => "resguid1", "verb" => "read"));
     $accessor = new NotificationType($mockdb);
     $actual = $accessor->get("guid1");
     $this->assertEquals($expected, $actual);
     $mockdb->verify();
 }