anchor.diff:      ]);
     });
   
  -  test('only match complete path segment', () async {
  -    final fixture = await setup<TestMatchCompletePathSegment>('/second-child');
  -    final log = fixture.assertOnlyInstance.lifecycleLog;
  -    // TODO(b/70224632): prevent initial `FirstChildComponent.ngOnInit`.
  +  test('only initialize route with longest prefix match', () async {
  +    final fixture = await setup<TestMatchCompletePathSegment>('items');
  +    final log = fixture.assertOnlyInstance.lifecycleLog;
  +    // TODO(b/70224632): prevent partial matches from being initialized.
       expect(
           log,
           [
  -          '$SecondChildComponent.ngOnInit',
  -          '$SecondChildComponent.canActivate',
  -          '$SecondChildComponent.onActivate'
  +          '$ThirdChildComponent.ngOnInit',
  +          '$ThirdChildComponent.canActivate',
  +          '$ThirdChildComponent.onActivate'
           ],
           skip: true);
     });
  
positive.code: }
  
  @Component(
    selector: 'first-child',
    template: '',
  )
  
negative.code:   final List<String> lifecycleLog;
    final Router router;
    final List<RouteDefinition> routes = [
      new RouteDefinition(
        path: '',
        component: ng.FirstChildComponentNgFactory,
      ),
      new RouteDefinition(
        path: 'item',
        component: ng.SecondChildComponentNgFactory,
      ),
      new RouteDefinition(
        path: 'items',
        component: ng.ThirdChildComponentNgFactory,
      ),
    ];
  
    TestMatchCompletePathSegment(
  