anchor.diff:        {List<String> included = const <String>[],
         int preferredPort,
         String summaryPath}) {
  -    if (cli.injectArtificialException) {
  +    if (cli._test.injectArtificialException) {
         return _ExceptionGeneratingNonNullableFix(
             listener, resourceProvider, getLineInfo,
             included: included,
  
positive.code:         headers: {'Content-Type': 'application/json; charset=UTF-8'});
    }
  
    _MigrationCli _createCli({bool injectArtificialException = false}) {
      mock_sdk.MockSdk(resourceProvider: resourceProvider);
      return _MigrationCli(this,
          injectArtificialException: injectArtificialException,
          environmentVariables: environmentVariables);
    }
  
    String _getHelpText({@required bool verbose}) {
  
negative.code:   test_lifecycle_exception_handling() async {
      var projectContents = simpleProject(sourceText: 'main() { print(0); }');
      var projectDir = await createProjectDir(projectContents);
      injectArtificialException = true;
      await assertRunFailure([projectDir]);
      var errorOutput = logger.stderrBuffer.toString();
      expect(errorOutput, contains('Artificial exception triggered'));
      expect(
  