anchor.diff:          environment: anyNamed('environment'),
         )).thenAnswer((_) async => ProcessResult(0, 0, '', ''));
   
  -       when(mockProcessManager.run(
  +       when(globals.processManager.run(
           const <String>[
             'ssh',
             '-F',
  
positive.code:         throwsA(equals('Failed to copy screenshot from device:\n<error-message>')),
        );
      }, overrides: <Type, Generator>{
        ProcessManager: () => mockProcessManager,
        Platform: () => FakePlatform(
          environment: <String, String>{
            'FUCHSIA_SSH_CONFIG': '/fuchsia/out/default/.ssh',
          },
          operatingSystem: 'linux',
        ),
      }, testOn: 'posix');
  
      testUsingContext("takeScreenshot prints error if can't delete file from device", () async {
        final FuchsiaDevice device = FuchsiaDevice('0.0.0.0', name: 'tester');
  
        when(mockProcessManager.run(
          const <String>[
            'ssh',
            '-F',
  
negative.code:         environment: anyNamed('environment'),
        )).thenAnswer((_) async => ProcessResult(0, 0, '', ''));
  
        expect(() async => await device.takeScreenshot(globals.fs.file('file.ppm')),
          returnsNormally);
      }, overrides: <Type, Generator>{
        ProcessManager: () => MockProcessManager(),
        FileSystem: () => MemoryFileSystem.test(),
        Platform: () => FakePlatform(
          environment: <String, String>{
            'FUCHSIA_SSH_CONFIG': '/fuchsia/out/default/.ssh',
          },
          operatingSystem: 'linux',
        ),
      });
    });
  
    group('portForwarder', () {
  