anchor.diff:        });
       }
       // TODO: change this to correct OAuth class for console
  -    sink.write("\n  ${capitalize(_name)}([oauth2.OAuth2Console auth]) : super(auth) {\n");
  +    sink.writeln();
  +    sink.writeln('  final oauth2.OAuth2Console auth;');
  +    sink.writeln();
  +    sink.writeln("  ${capitalize(_name)}([oauth2.OAuth2Console this.auth]) {");
       if (_json.containsKey("resources")) {
         _json["resources"].forEach((key, resource) {
           var subClassName = "${capitalize(key)}Resource_";
  
positive.code:     var url = new oauth2.UrlPattern(path).generate(urlParams, queryParams);
      var uri = core.Uri.parse(url);
  
      if (makeAuthRequests && _auth != null) {
        // Client wants an authenticated request.
        return _auth.withClient((r) => _request(r, method, uri, contentType, body));
      } else {
        // Client wants a non authenticated request.
        return _request(new http.Client(), method, uri, contentType, body);
  
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);
      }
  