public function testGetHashByUrl()
 {
     $url = 'http://www.zurmo.com';
     try {
         ShortUrl::getHashByUrl($url);
         $this->assertTrue(false);
     } catch (NotFoundException $exception) {
         $this->assertTrue(true);
     }
     $shortUrl = new ShortUrl();
     $shortUrl->hash = 'abcdefghij';
     $shortUrl->url = $url;
     $shortUrl->save();
     $hash = ShortUrl::getHashByUrl($url);
     $this->assertEquals('abcdefghij', $hash);
     ShortUrl::deleteAll();
 }