mirrored_repositories/just_launch/plugins/package_manager
// import 'package:flutter_test/flutter_test.dart';
// import 'package:package_manager/package_manager.dart';
// import 'package:package_manager/package_manager_platform_interface.dart';
// import 'package:package_manager/package_manager_method_channel.dart';
// import 'package:plugin_platform_interface/plugin_platform_interface.dart';

// class MockPackageManagerPlatform
//     with MockPlatformInterfaceMixin
//     implements PackageManagerPlatform {

//   @override
//   Future<String?> getPlatformVersion() => Future.value('42');
// }

// void main() {
//   final PackageManagerPlatform initialPlatform = PackageManagerPlatform.instance;

//   test('$MethodChannelPackageManager is the default instance', () {
//     expect(initialPlatform, isInstanceOf<MethodChannelPackageManager>());
//   });

//   test('getPlatformVersion', () async {
//     PackageManager packageManagerPlugin = PackageManager();
//     MockPackageManagerPlatform fakePlatform = MockPackageManagerPlatform();
//     PackageManagerPlatform.instance = fakePlatform;

//     expect(await packageManagerPlugin.getPlatformVersion(), '42');
//   });
// }
