public function test_invalid_uid()
 {
     global $core;
     $ticket = new Ticket();
     $ticket->token = self::$model->generate_token();
     $ticket->uid = 999;
     $ticket->ip = $core->request->ip;
     $ticket->expire_at = '+1 hour';
     $ticket->save();
     try {
         $request = Request::from(self::$route->format($ticket));
         $response = $request();
         $this->fail('The Failure exception should have been thrown.');
     } catch (\ICanBoogie\Operation\Failure $e) {
         $response = $e->operation->response;
         $this->assertFalse($response->is_successful);
         $this->assertNotNull($response->errors['uid']);
     }
 }