anchor.diff:  
       test('prepareRequestHandler', () {
         // given
  -      HttpRequest req;
         var request = new HttpRequestMock(Uri.parse('/static/'));
   
         // when & then
  
positive.code:   HttpRequestMock(this.uri);
  }
  
  void main() {
    group('(Backend)', () {
      Backend backend;
  
negative.code:       // then
        requestNavigator.getLogs(callsTo('registerDefaultHandler')).verify(happenedOnce);
      });
  
      test('addNotFoundView with forgotten backslash', () {
        //setUp real-like environment - so the backend made redirect callback will be called
        var realRouter = new Router("", {});
        var realRequestNavigator = new RequestNavigator(
            new StreamHttpRequestMock(), realRouter);
  
        backend = new Backend.config(server, realRouter, realRequestNavigator,
            hmac, httpBodyHandler.processRequest);
  
        // given
        backend.addRoute('static', new Route('/static/'));
        backend.addView('static', (_) {});
        backend.addNotFoundView(expectAsync1((_) {}, count : 0));
  
        //incoming request
        HttpRequestMock request = new HttpRequestMock(Uri.parse('/static'));
        HttpResponseMock response = request.response;
  
        // when
        realRequestNavigator.processHttpRequest(request);
  
        // then
        return new Future.delayed(new Duration(milliseconds: 100), () {
          response.getLogs(callsTo('redirect')).verify(happenedOnce);
          expect(response.getLogs(callsTo('redirect')).last.args[0].path,
              equals('/static/'));
        });
      });
    });
  }
  
  