anchor.diff:        requestData["body"] = body;
         requestData["headers"]["Content-Type"] = contentType;
       }
  -    if (makeAuthRequests && _auth != null && _auth.token != null) {
  -      requestData["headers"]["Authorization"] = "\${_auth.token.type} \${_auth.token.data}";
  +    if (makeAuthRequests && auth != null && auth.token != null) {
  +      requestData["headers"]["Authorization"] = "\${auth.token.type} \${auth.token.data}";
       }
   
       js.scoped(() {
  
positive.code:         }
        });
      }
      sink.write("\n  ${capitalize(_name)}([oauth.OAuth2 auth]) : super(auth) {\n");
      if (_json.containsKey("resources")) {
        _json["resources"].forEach((key, resource) {
          var subClassName = "${capitalize(key)}Resource_";
  
negative.code: 
      request.open(method, url);
      request.setRequestHeader("Content-Type", contentType);
      if (makeAuthRequests && auth != null) {
        auth.authenticate(request).then((request) => request.send(body));
      } else {
        request.send(body);
      }
  