anchor.diff:  // Use of this source code is governed by a BSD-style license that can be
   // found in the LICENSE file.
   
  +import 'package:appengine/appengine.dart';
   import 'package:cocoon_service/src/datastore/cocoon_config.dart';
   import 'package:cocoon_service/src/model/appengine/agent.dart';
   import 'package:cocoon_service/src/model/appengine/commit.dart';
  
positive.code:     });
  
      test('returns full response if task is available', () async {
        RequestContext context = RequestContext(agent: agent);
        Map<String, dynamic> request = <String, dynamic>{'AgentID': 'aid'};
        Task task = Task(name: 'foo_test');
        Commit commit = Commit(sha: 'abc');
  
negative.code: class MockDatastoreDB extends Mock implements DatastoreDB {}
  
  class MockQuery<T extends Model> extends Mock implements Query<T> {}
  
  // ignore: must_be_immutable
  class FakeRequestContext implements RequestContext {
    @override
    Agent agent;
  
    @override
    ClientContext get clientContext => FakeClientContext();
  }
  
  class FakeClientContext implements ClientContext {
    @override
    AppEngineContext applicationContext;
  
    @override
    bool isDevelopmentEnvironment = false;
  
    @override
    bool isProductionEnvironment = true;
  
    @override
    Services services;
  
    @override
    String traceId;
  }
  