Initialize mock.
Future<void> initialize({bool autoRestore = true}) async { await Future.delayed(delay); _initialized = true; }