anchor.diff:  ''');
     }
   
  -  Future<void> test_method_first_deprecated() async {
  -    setPackageContent('''
  -class C {
  -  @deprecated
  -  void m<T>() {}
  -}
  -''');
  -    setPackageData(_add(0));
  -    await resolveTestUnit('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<int>();
  -}
  -''');
  -    await assertHasFix('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<String, int>();
  -}
  -''');
  -  }
  -
  -  Future<void> test_method_last_deprecated() async {
  -    setPackageContent('''
  -class C {
  -  @deprecated
  -  void m<S, T>() {}
  -}
  -''');
  -    setPackageData(_add(2));
  -    await resolveTestUnit('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<int, double>();
  -}
  -''');
  -    await assertHasFix('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<int, double, String>();
  -}
  -''');
  -  }
  -
  -  Future<void> test_method_middle_deprecated() async {
  -    setPackageContent('''
  -class C {
  -  @deprecated
  -  void m<S, U>() {}
  -}
  -''');
  -    setPackageData(_add(1));
  -    await resolveTestUnit('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<int, double>();
  -}
  -''');
  -    await assertHasFix('''
  -import '$importUri';
  -
  -void f(C c) {
  -  c.m<int, String, double>();
  -}
  -''');
  -  }
  -
  -  Future<void> test_method_noBound_removed() async {
  +  Future<void> test_override_withoutBound_removed() async {
       setPackageContent('''
   class C {
     void m<T>() {}
  
positive.code: }
  ''');
    }
  
    Future<void> test_method_only_deprecated() async {
      setPackageContent('''
  class C {
    @deprecated
    void m() {}
  }
  ''');
      setPackageData(_add(0));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<String>();
  }
  ''');
    }
  
    Future<void> test_method_removed() async {
      setPackageContent('''
  class C {
    void m<S, T>() {}
  }
  ''');
      setPackageData(_add(0));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m<int>();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<String, int>();
  }
  ''');
    }
  
negative.code: 
  @reflectiveTest
  class AddTypeParameterToMethodTest extends _AddTypeParameterChange {
    Future<void> test_first_deprecated() async {
      setPackageContent('''
  class C {
    @deprecated
    void m<T>() {}
  }
  ''');
      setPackageData(_add(0));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m<int>();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<String, int>();
  }
  ''');
    }
  
    Future<void> test_first_removed() async {
      setPackageContent('''
  class C {
    void m<S, T>() {}
  }
  ''');
      setPackageData(_add(0));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m<int>();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<String, int>();
  }
  ''');
    }
  
    Future<void> test_last_deprecated() async {
      setPackageContent('''
  class C {
    @deprecated
    void m<S, T>() {}
  }
  ''');
      setPackageData(_add(2));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m<int, double>();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<int, double, String>();
  }
  ''');
    }
  
    Future<void> test_middle_deprecated() async {
      setPackageContent('''
  class C {
    @deprecated
    void m<S, U>() {}
  }
  ''');
      setPackageData(_add(1));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m<int, double>();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<int, String, double>();
  }
  ''');
    }
  
    Future<void> test_only_deprecated() async {
      setPackageContent('''
  class C {
    @deprecated
    void m() {}
  }
  ''');
      setPackageData(_add(0));
      await resolveTestUnit('''
  import '$importUri';
  
  void f(C c) {
    c.m();
  }
  ''');
      await assertHasFix('''
  import '$importUri';
  
  void f(C c) {
    c.m<String>();
  }
  ''');
    }
  
    Future<void> test_override_withBound_removed() async {
      setPackageContent('''
  class C {
    void m<T extends num>() {}
  