// import 'package:flutter_test/flutter_test.dart'; // import 'package:persistent/persistent.dart'; // import 'package:persistent/persistent_platform_interface.dart'; // import 'package:persistent/persistent_method_channel.dart'; // import 'package:plugin_platform_interface/plugin_platform_interface.dart'; // // class MockPersistentPlatform // with MockPlatformInterfaceMixin // implements PersistentPlatform { // // @override // Future getPlatformVersion() => Future.value('42'); // } // // void main() { // final PersistentPlatform initialPlatform = PersistentPlatform.instance; // // test('$MethodChannelPersistent is the default instance', () { // expect(initialPlatform, isInstanceOf()); // }); // // test('getPlatformVersion', () async { // Persistent persistentPlugin = Persistent(); // MockPersistentPlatform fakePlatform = MockPersistentPlatform(); // PersistentPlatform.instance = fakePlatform; // // expect(await persistentPlugin.getPlatformVersion(), '42'); // }); // }