text: var request = require('supertest');
  var app = require(__dirname+'/../../lib/app.js');
  var gateway = require(__dirname+'/../../');
  
  describe('list users', function(){
  
    it('should return unauthorized without credentials', function(done){
      request(app)
        .get('/v1/users')
        .expect(401)
        .end(function(err, res){
          if (err) throw err;
          done();
        });
    });
  
    it('should return successfully with credentials', function(done){
      request(app)
        .get('/v1/users')
        .auth('admin@'+gateway.config.get('DOMAIN'), gateway.config.get('KEY'))
        .expect(200)
        .end(function(err, res){
          if (err) throw err;
          done();
        });
    });
  
  });
  
  