anchor.diff:    });
   
     group('ui', () {
  -    tScopedTest('/packages', () async {
  -      registerSearchService(SearchServiceMock(
  -        (SearchQuery query) {
  -          expect(query.offset, 0);
  -          expect(query.limit, pageSize);
  -          expect(query.platform, isNull);
  -          expect(query.isAd, isFalse);
  -          return SearchResultPage(query, 1, [
  -            PackageView.fromModel(
  -                package: foobarPackage,
  -                version: foobarStablePV,
  -                scoreCard: null)
  -          ]);
  -        },
  -      ));
  -      final backend = BackendMock(
  -        lookupPackageFun: (packageName) {
  -          return packageName == foobarPackage.name ? foobarPackage : null;
  -        },
  -        lookupLatestVersionsFun: (List<Package> packages) {
  -          expect(packages.length, 1);
  -          expect(packages.first, foobarPackage);
  -          return [foobarStablePV];
  -        },
  +    testWithServices('/packages', () async {
  +      await expectHtmlResponse(
  +        await issueGet('/packages'),
  +        present: [
  +          '/packages/helium',
  +          '/packages/hydrogen',
  +          'hydrogen is a Dart package',
  +        ],
  +        absent: [
  +          '/packages/http',
  +          '/packages/event_bus',
  +          'lightweight library for parsing',
  +        ],
         );
  -      registerBackend(backend);
  -      registerAnalyzerClient(AnalyzerClientMock());
  -      await expectHtmlResponse(await issueGet('/packages'));
       });
   
       tScopedTest('/packages?q=foobar', () async {
  
positive.code: 
  import 'package:test/test.dart';
  
  import 'package:pub_dartlang_org/account/backend.dart';
  import 'package:pub_dartlang_org/account/models.dart';
  import 'package:pub_dartlang_org/frontend/backend.dart';
  import 'package:pub_dartlang_org/frontend/models.dart';
  import 'package:pub_dartlang_org/frontend/name_tracker.dart';
  
negative.code: 
  import '../../shared/handlers_test_utils.dart';
  import '../../shared/test_models.dart';
  import '../../shared/test_services.dart';
  import '../mocks.dart';
  
  import '_utils.dart';
  