anchor.diff:    }
   
     test_getLibraryByUri_unresolvedUri() async {
  +    var session = contextFor(testFilePath).currentSession;
       var result = await session.getLibraryByUri('package:foo/foo.dart');
       expect(result, isA<CannotResolveUriResult>());
     }
   
     test_getParsedLibrary() async {
  -    newFile(testPath, content: r'''
  +    var test = newFile('$testPackageLibPath/a.dart', content: r'''
   class A {}
   class B {}
   ''');
   
  -    var parsedLibrary = session.getParsedLibraryValid(testPath);
  +    var session = contextFor(testFilePath).currentSession;
  +    var parsedLibrary = session.getParsedLibraryValid(test.path);
       expect(parsedLibrary.session, session);
   
       expect(parsedLibrary.units, hasLength(1));
       {
         var parsedUnit = parsedLibrary.units[0];
         expect(parsedUnit.session, session);
  -      expect(parsedUnit.path, testPath);
  -      expect(parsedUnit.uri, Uri.parse('package:test/test.dart'));
  +      expect(parsedUnit.path, test.path);
  +      expect(parsedUnit.uri, Uri.parse('package:test/a.dart'));
         expect(parsedUnit.unit.declarations, hasLength(2));
       }
     }
   
     test_getParsedLibrary_getElementDeclaration_class() async {
  -    newFile(testPath, content: r'''
  +    var test = newFile(testFilePath, content: r'''
   class A {}
   class B {}
   ''');
   
  +    var session = contextFor(testFilePath).currentSession;
       var libraryResult = await session.getLibraryByUriValid(
         'package:test/test.dart',
       );
  -    var parsedLibrary = session.getParsedLibraryValid(testPath);
  +    var parsedLibrary = session.getParsedLibraryValid(test.path);
   
       var element = libraryResult.element.getType('A')!;
       var declaration = parsedLibrary.getElementDeclaration(element)!;
  
positive.code:   }
  
    test_getResolvedLibrary_getElementDeclaration_synthetic() async {
      newFile(testPath, content: r'''
  int foo = 0;
  ''');
  
      var resolvedLibrary = await session.getResolvedLibraryValid(testPath);
      var unitElement = resolvedLibrary.element.definingCompilationUnit;
  
      var fooElement = unitElement.topLevelVariables[0];
  
negative.code:   }
  
    test_getResolvedLibrary_invalidPath_notAbsolute() async {
      var session = contextFor(testFilePath).currentSession;
      var result = await session.getResolvedLibrary('not_absolute.dart');
      expect(result, isA<InvalidPathResult>());
    }
  
    test_getResolvedLibrary_notLibrary() async {
      var test = newFile(testFilePath, content: 'part of "a.dart";');
  
      var session = contextFor(testFilePath).currentSession;
      var result = await session.getResolvedLibrary(test.path);
      expect(result, isA<NotLibraryButPartResult>());
    }
  
    test_getResolvedLibraryByElement() async {
      var test = newFile(testFilePath, content: '');
  
      var session = contextFor(testFilePath).currentSession;
      var libraryResult = await session.getLibraryByUriValid(
        'package:test/test.dart',
      );
  