anchor.diff:      });
   
       testWithoutContext(' throws on disallowed failure', () async {
  -      when(mockProcessManager.runSync(<String>['kaboom'])).thenReturn(
  -        ProcessResult(0, 2, '', '')
  -      );
  +      fakeProcessManager.addCommand(const FakeCommand(
  +        command: <String>[
  +          'kaboom',
  +        ],
  +        exitCode: 2,
  +      ));
         expect(
           () => processUtils.runSync(
             <String>['kaboom'],
  
positive.code:     });
  
      testWithoutContext(' does not throw on allowed Failures', () async {
        when(mockProcessManager.runSync(<String>['kaboom'])).thenReturn(
          ProcessResult(0, 1, '', '')
        );
        expect(
          processUtils.runSync(
            <String>['kaboom'],
  
negative.code:     });
  
      testWithoutContext(' throws on disallowed failure', () async {
        fakeProcessManager.addCommand(const FakeCommand(
          command: <String>[
            'kaboom',
          ],
          exitCode: 2,
        ));
        expect(
          () => processUtils.run(
            <String>['kaboom'],
  