anchor.diff:        });
   
         testWithoutContext('diagnostic message', () async {
  -        final MockDeviceManager mockDeviceManager = MockDeviceManager();
  -
  -        when(mockDeviceManager.getAllConnectedDevices()).thenAnswer(
  -          (Invocation invocation) => Future<List<Device>>.value(<Device>[])
  -        );
  -        when(mockDeviceManager.getDeviceDiagnostics()).thenAnswer(
  -          (Invocation invocation) => Future<List<String>>.value(<String>['Device locked'])
  -        );
  +        final FakeDeviceManager deviceManager = FakeDeviceManager()
  +          ..diagnostics = <String>['Device locked'];
   
           final DeviceValidator deviceValidator = DeviceValidator(
  -          deviceManager: mockDeviceManager,
  +          deviceManager: deviceManager,
             userMessages: UserMessages(),
           );
           final ValidationResult result = await deviceValidator.validate();
  
positive.code:         ),
        ]));
      }, overrides: <Type, Generator>{
        Platform: _kNoColorOutputPlatform,
        Usage: () => testUsage,
      });
  
  
negative.code:       });
  
        testWithoutContext('diagnostic message and devices', () async {
          final FakeDevice device = FakeDevice();
          final FakeDeviceManager deviceManager = FakeDeviceManager()
            ..devices = <Device>[device]
            ..diagnostics = <String>['Device locked'];
  
          final DeviceValidator deviceValidator = DeviceValidator(
            deviceManager: deviceManager,
            userMessages: UserMessages(),
          );
          final ValidationResult result = await deviceValidator.validate();
          expect(result.type, ValidationType.installed);
          expect(result.messages, const <ValidationMessage>[
            ValidationMessage('name (mobile) • device-id • android • 1.2.3'),
            ValidationMessage.hint('Device locked'),
          ]);
          expect(result.statusInfo, '1 available');
  