anchor.diff:  '''));
     }
   
  -  test_pubspec_with_sdk_version_beta() async {
  -    var projectDir = createProjectDir(simpleProject());
  -    var cliRunner = _createCli(sdkVersion: '2.12.0-1.2.beta')
  -        .decodeCommandLineArgs(_parseArgs(['--apply-changes', projectDir]))!;
  -    await cliRunner.run();
  -    assertProjectContents(
  -        projectDir, simpleProject(migrated: true, pubspecText: '''
  -name: test
  -environment:
  -  sdk: '>=2.12.0-1.2.beta <3.0.0'
  -'''));
  -  }
  -
  -  test_pubspec_with_sdk_version_dev() async {
  -    var projectDir = createProjectDir(simpleProject());
  -    var cliRunner = _createCli(sdkVersion: '2.12.0-1.2.dev')
  -        .decodeCommandLineArgs(_parseArgs(['--apply-changes', projectDir]))!;
  -    await cliRunner.run();
  -    assertProjectContents(
  -        projectDir, simpleProject(migrated: true, pubspecText: '''
  -name: test
  -environment:
  -  sdk: '>=2.12.0-0 <3.0.0'
  -'''));
  -  }
  -
  -  test_pubspec_with_sdk_version_edge() async {
  -    var projectDir = createProjectDir(simpleProject());
  -    var cliRunner = _createCli(sdkVersion: '2.12.0-edge.1234567')
  -        .decodeCommandLineArgs(_parseArgs(['--apply-changes', projectDir]))!;
  -    await cliRunner.run();
  -    assertProjectContents(
  -        projectDir, simpleProject(migrated: true, pubspecText: '''
  -name: test
  -environment:
  -  sdk: '>=2.12.0-0 <3.0.0'
  -'''));
  -  }
  -
  -  test_pubspec_with_sdk_version_internal() async {
  -    var projectDir = createProjectDir(simpleProject());
  -    var cliRunner = _createCli(sdkVersion: '2.12.0-1234567')
  -        .decodeCommandLineArgs(_parseArgs(['--apply-changes', projectDir]))!;
  -    await cliRunner.run();
  -    assertProjectContents(
  -        projectDir, simpleProject(migrated: true, pubspecText: '''
  -name: test
  -environment:
  -  sdk: '>=2.12.0-0 <3.0.0'
  -'''));
  -  }
  -
     test_uses_physical_resource_provider_by_default() {
       var cli = MigrationCli(binaryName: 'nnbd_migration');
       expect(cli.resourceProvider, same(PhysicalResourceProvider.INSTANCE));
  
positive.code:         headers: {'Content-Type': 'application/json; charset=UTF-8'});
    }
  
    _MigrationCli _createCli(
        {List<String> nullSafePackages = const [], String? sdkVersion}) {
      mock_sdk.MockSdk(
          resourceProvider: resourceProvider,
          nullSafePackages: nullSafePackages,
          sdkVersion: sdkVersion);
      return _MigrationCli(this);
    }
  
  
negative.code: 
      var projectContents = createProject();
      var projectDir = createProjectDir(projectContents);
      var cliRunner = _createCli()
          .decodeCommandLineArgs(_parseArgs(['--apply-changes', projectDir]))!;
      await cliRunner.run();
      assertNormalExit(cliRunner);
  