anchor.diff:      }
     }
   
  -  /// Set up files for [package] rooted at [root] and [workspace] rooted at
  -  /// [workspaceRoot].
  -  void _setUpPackage(String root, {@required String workspaceRoot}) {
  -    _addResources([
  -      '$workspaceRoot/WORKSPACE',
  -      '$workspaceRoot/bazel-genfiles/',
  -      '$root/BUILD',
  -      '$root/lib/code.dart',
  -    ]);
  -    workspace =
  -        BazelWorkspace.find(resourceProvider, convertPath('/ws/some/code'));
  -    package = workspace.findPackageFor('$root/lib/code.dart');
  +  Source _inSummarySource(String uriStr) {
  +    var uri = Uri.parse(uriStr);
  +    return InSummarySource(uri, '');
  +  }
  +
  +  void _setUpPackage() {
  +    _addResources([
  +      '/ws/WORKSPACE',
  +      '/ws/bazel-genfiles/',
  +      '/ws/some/code/BUILD',
  +      '/ws/some/code/lib/code.dart',
  +    ]);
  +
  +    workspace = BazelWorkspace.find(
  +      resourceProvider,
  +      convertPath('/ws/some/code'),
  +    );
  +    package = workspace.findPackageFor(
  +      convertPath('/ws/some/code/lib/code.dart'),
  +    );
  +  }
  +
  +  Source _testSource(String path) {
  +    path = convertPath(path);
  +    return TestSource(path);
     }
   }
   
  
positive.code:       '/ws/blaze-out/k8-opt/bin/some/code/',
        '/ws/some/code/lib/code.dart',
      ]);
      workspace =
          BazelWorkspace.find(resourceProvider, convertPath('/ws/some/code'));
  
      package = workspace.findPackageFor('/ws/some/code/lib/code.dart');
      expect(package, isNotNull);
      expect(package.root, convertPath('/ws/some/code'));
      expect(package.workspace, equals(workspace));
  
negative.code:       '/ws/blaze-out/host/bin/some/code/code.packages',
        '/ws/some/code/lib/code.dart',
      ]);
      workspace = BazelWorkspace.find(
        resourceProvider,
        convertPath('/ws/some/code'),
      );
  
      package = workspace.findPackageFor(
        convertPath('/ws/some/code/lib/code.dart'),
      );
      expect(package, isNotNull);
      expect(package.root, convertPath('/ws/some/code'));
      expect(package.workspace, equals(workspace));
  