function testFromApiResponseMessage()
 {
     try {
         $ex = new Exception();
         $ex->from_api_response_message('... API key ...');
         $this->fail('Should throw AuthException');
     } catch (AuthException $e) {
         $this->assertEquals('... API key ...', $e->getMessage());
     }
     try {
         $ex = new Exception();
         $ex->from_api_response_message('server error');
         $this->fail('Should throw ServerException');
     } catch (ServerException $e) {
         $this->assertEquals('server error', $e->getMessage());
     }
 }