anchor.diff:      expect(frameCount, 1);
   
       // Get the tester back to a resumed state for subsequent tests.
  -    message = const StringCodec().encodeMessage('AppLifecycleState.resumed')!;
  -    await defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) { });
  +    setAppLifeCycleState(AppLifecycleState.resumed);
       expect(tester.binding.hasScheduledFrame, isTrue);
       await tester.pump();
     });
  
positive.code: // Copyright 2014 The Flutter Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  // TODO(gspencergoog): Remove this tag once this test's state leaks/test
  // dependencies have been fixed.
  // https://github.com/flutter/flutter/issues/85160
  // Fails with "flutter test --test-randomize-ordering-seed=382757700"
  @Tags(<String>['no-shuffle'])
  
  import 'package:flutter/foundation.dart';
  import 'package:flutter/services.dart';
  
negative.code:     WidgetsFlutterBinding.ensureInitialized();
    });
  
    Future<void> setAppLifeCycleState(AppLifecycleState state) async {
      final ByteData? message =
          const StringCodec().encodeMessage(state.toString());
      await ServicesBinding.instance!.defaultBinaryMessenger
          .handlePlatformMessage('flutter/lifecycle', message, (_) {});
    }
  
    testWidgets('didHaveMemoryPressure callback', (WidgetTester tester) async {
      final MemoryPressureObserver observer = MemoryPressureObserver();
      WidgetsBinding.instance!.addObserver(observer);
  