title: Testing admin user on Mocha
body: <p>I'm writing tests, trying to use TDD with Mocha on an application that uses JWT for authentication. Basically admin and common users share the same User model, with a boolean admin field.</p>
  
  <p>These are the routes:</p>
  
  <pre><code>app.post('/register', controllers.auth.create);
  app.post('/login', controllers.auth.login);
  
  router.get('/admin', function (req, res) {..[render admin login tpl]..}); 
  router.post('/admin', isAuthenticated, isAuthorized, controllers.admin.index);
  </code></pre>
  
  <p>My question is, how to test an Admin user, I can't create on DB directly because i'm checking the token too (isAuthenticated). 
  What's the best way to test it in Mocha?</p>