public virtual void TestResourceNotFoundException()
 {
     try
     {
         Error error = new Error();
         error.ErrorCode = 1;
         error.Message   = "testing testing";
         throw new ResourceNotFoundException(error);
     }
     catch (ResourceNotFoundException e)
     {
         Assert.AreEqual("testing testing", e.Message);
         Assert.AreEqual(1, e.ErrorCode);
     }
 }
 public virtual void TestAccessTokenExpiredException()
 {
     try
     {
         Error error = new Error();
         error.ErrorCode = 1;
         error.Message   = "testing testing";
         throw new AccessTokenExpiredException(error);
     }
     catch (AccessTokenExpiredException e)
     {
         Assert.AreEqual("testing testing", e.Message);
         Assert.AreEqual(1, e.ErrorCode);
     }
 }
 public virtual void TestServiceUnavailableException()
 {
     try
     {
         Error error = new Error();
         error.ErrorCode = 1;
         error.Message   = "testing testing";
         throw new ServiceUnavailableException(error);
     }
     catch (ServiceUnavailableException e)
     {
         Assert.AreEqual("testing testing", e.Message);
         Assert.AreEqual(1, e.ErrorCode);
     }
 }