anchor.diff:    });
   
     test('should parse out query params and fragment', () async {
  -    final fixture =
  -        await new NgTestBed<TestRouterLinkWithTarget>().addProviders([
  +    final fixture = await new NgTestBed<TestRouterLink>().addProviders([
         provide(Location, useValue: const FakeLocation()),
         provide(Router, useValue: fakeRouter),
       ]).create(beforeChangeDetection: (comp) {
  
positive.code:   template: r'''
      <a [routerLink]="routerLink"></a>
    ''',
    // TODO(b/65383776): Change preserveWhitespace to false to improve codesize.
    preserveWhitespace: true,
  )
  class TestRouterLink {
    String routerLink;
  
negative.code:     RouterLink,
    ],
    template: r'''
      <a (click)="onClick($event)" [routerLink]="routerLink" target="_parent"></a>
    ''',
  )
  class TestRouterLinkWithTarget {
    String routerLink;
  
    void onClick(MouseEvent event) {
      // Prevent navigating away from test page.
      event.preventDefault();
    }
  }
  
  class FakeRouter implements Router {
  