)', function (done) {            var req = {              method: 'POST',              url: '/resource/0?filter=a',              headers: {                  host: 'example.com:0000',                  'content-type': 'text/plain;x=y'              }          };            var payload = 'some not so random text';            credentialsFunc('000000', function (err, credentials0) {                var reqHeader = Hawk.client.header('http://example.com:0000/resource/0?filter=a', req.method, { credentials: credentials0, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });              req.headers.authorization = reqHeader.field;                Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials0, artifacts) {                    expect(err).to.not.exist();                  expect(credentials0.user).to.equal('steve');                  expect(artifacts.ext).to.equal('some-app-data');                  expect(Hawk.server.authenticatePayload(payload, credentials0, artifacts, req.headers['content-type'])).to.equal(true);                    var res = {                      headers: {                          'content-type': 'text/plain'                      }                  };                    res.headers['server-authorization'] = Hawk.server.header(credentials0, artifacts);                  expect(res.headers['server-authorization']).to.exist();                    expect(Hawk.client.authenticate(res, credentials0, artifacts)).to.equal(true);                  done();              });          });      });        it('generates a header then fail