anchor.diff:    });
   
     group('runSync', () {
  -    ProcessManager mockProcessManager;
  +    FakeProcessManager fakeProcessManager;
       ProcessUtils processUtils;
       BufferLogger testLogger;
   
       setUp(() {
  -      mockProcessManager = MockProcessManager();
  +      fakeProcessManager = FakeProcessManager.list(<FakeCommand>[]);
         testLogger = BufferLogger(
           terminal: AnsiTerminal(
             stdio: MockStdio(),
  
positive.code:       );
      });
    });
  
  }
  
  class PlainMockProcessManager extends Mock implements ProcessManager {}
  
negative.code:     });
  
      testWithoutContext(' throws on disallowed failure', () async {
        fakeProcessManager.addCommand(const FakeCommand(
          command: <String>[
            'kaboom',
          ],
          exitCode: 2,
        ));
        expect(
          () => processUtils.runSync(
            <String>['kaboom'],
  