anchor.diff:    });
   
     test('Pipeline can be used as middleware', () async {
  -    int accessLocation = 0;
  +    var accessLocation = 0;
   
       var middlewareA = createMiddleware(requestHandler: (request) async {
         expect(accessLocation, 0);
  
positive.code:       accessLocation = 2;
      });
  
      var client = const Pipeline()
          .addMiddleware(middlewareA)
          .addMiddleware(middlewareB)
          .addClient(new Client.handler((request) async => null, onClose: () {
            expect(accessLocation, 2);
            accessLocation = 3;
          }));
  
      client.close();
      expect(accessLocation, 3);
    });
  }
  
negative.code:   });
  
    test('Pipeline calls close on all middleware', () {
      var accessLocation = 0;
  
      var middlewareA = createMiddleware(onClose: () {
        expect(accessLocation, 0);
  