anchor.diff:      expect(file.errors.errors, isEmpty);
   
       final result = file.currentResult as ParsedMoorFile;
  -    final query = result.resolvedQueries.single as SqlSelectQuery;
  +    final query = result.resolvedQueries.firstWhere((q) => q.name == 'test')
  +        as SqlSelectQuery;
   
  -    expect(query.name, 'test');
       expect(query.variables, isEmpty);
       expect(query.declaredInMoorFile, isTrue);
       expect(query.readsFrom, isEmpty);
  
positive.code:     backend = TestBackend(
        {
          AssetId.parse('foo|lib/test.moor'): r'''
  test:
  WITH RECURSIVE
    cnt(x) AS (
  
negative.code:     expect(resultSet.columns.map(resultSet.dartNameFor), ['x']);
      expect(resultSet.columns.map((c) => c.type), [ColumnType.integer]);
    });
  
    test('finds the underlying table when aliased through CFE', () {
      final file = session.registerFile(Uri.parse('package:foo/test.moor'));
      final result = file.currentResult as ParsedMoorFile;
      final query = result.resolvedQueries.firstWhere((q) => q.name == 'test2')
          as SqlSelectQuery;
  
      final resultSet = query.resultSet;
  
      expect(resultSet.matchingTable, isNotNull);
      expect(resultSet.matchingTable.displayName, 'foo');
      expect(resultSet.needsOwnClass, isFalse);
    });
  }
  