anchor.diff:        });
   
         testUsingContext('Registrant uses shim for plugins using old embedding if app uses new embedding', () async {
  -        when(flutterProject.isModule).thenReturn(false);
  -        when(androidProject.getEmbeddingVersion()).thenReturn(AndroidEmbeddingVersion.v2);
  +        androidProject.embeddingVersion = AndroidEmbeddingVersion.v2;
   
           createNewJavaPlugin1();
           createNewKotlinPlugin2();
  
positive.code:       });
  
        testUsingContext('pluginClass: none doesn\'t trigger registrant entry on Linux', () async {
          when(flutterProject.isModule).thenReturn(false);
          // Create a plugin without a pluginClass.
          final Directory pluginDirectory = createFakePlugin(fs);
          pluginDirectory.childFile('pubspec.yaml').writeAsStringSync('''
  
negative.code: import 'package:flutter_tools/src/project.dart';
  import 'package:flutter_tools/src/version.dart';
  import 'package:meta/meta.dart';
  import 'package:test/fake.dart';
  import 'package:yaml/yaml.dart';
  
  import '../src/common.dart';
  