anchor.diff:  class B /*b*/ {}
   class B2 extends X {}
   ''';
  -    newFile(b, content: bContent);
  -
  -    var resolvedLibrary = await session.getResolvedLibraryValid(a);
  +    var b = newFile('$testPackageLibPath/b.dart', content: bContent);
  +
  +    var session = contextFor(testFilePath).currentSession;
  +    var resolvedLibrary = await session.getResolvedLibraryValid(a.path);
       expect(resolvedLibrary.session, session);
   
       var typeProvider = resolvedLibrary.typeProvider;
  
positive.code:   }
  
    test_getParsedLibrary_getElementDeclaration_notThisLibrary() async {
      newFile(testPath, content: '');
  
      var resolvedUnit =
          await session.getResolvedUnit(testPath) as ResolvedUnitResult;
      var typeProvider = resolvedUnit.typeProvider;
      var intClass = typeProvider.intType.element;
  
      var parsedLibrary = session.getParsedLibraryValid(testPath);
  
      expect(() {
        parsedLibrary.getElementDeclaration(intClass);
  
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',
      );
  