Create a simple test in <plugin_name>/test/<plugin_name>_test.dart.
For the purpose of testing the PR that adds the v2 embedding support,
we’re trying to test some very basic functionality of the plugin.
This is a smoke test to ensure that the plugin properly registers
with the new embedder. For example:

    
 import 'package:flutter_test/flutter_test.dart';
 import 'package:integration_test/integration_test.dart';

 void main() {
   IntegrationTestWidgetsFlutterBinding.ensureInitialized();

   testWidgets('Can get battery level', (tester) async {
     final Battery battery = Battery();
     final int batteryLevel = await battery.batteryLevel;
     expect(batteryLevel, isNotNull);
   });
 }

Test run the integration_test tests locally. In a terminal,
do the following:

    
 flutter test integration_test/app_test.dart