anchor.diff:      assert(apiServer != null);
       var body = new Stream.fromIterable([UTF8.encode(JSON.encode(json))]);
       var request = new HttpApiRequest('POST', path, {}, {}, body);
  +    return apiServer.handleHttpApiRequest(request);
  +  }
  +
  +  Future<HttpApiResponse> _sendGetRequest(String path, Map queryParams) {
  +    assert(apiServer != null);
  +    var body = new Stream.fromIterable([]);
  +    var request = new HttpApiRequest('GET', path, queryParams, {}, body);
       return apiServer.handleHttpApiRequest(request);
     }
   
  
positive.code:       var response = await _sendPostRequest('dartservices/v1/document', json);
        expect(response.status, 400);
      });
    });
  }
  
  
negative.code: }
  
  class MockCounter implements PersistentCounter {
    Map<String, int> counter = {};
  
    @override
    Future<int> getTotal(String name) {
      counter.putIfAbsent(name, () => 0);
      return new Future.value(counter[name]);
    }
  
    @override
    Future increment(String name, {int increment : 1}) {
      counter.putIfAbsent(name, () => 0);
      return new Future.value(counter[name]++);
    }
  }
  