anchor.diff:          ephemeralTwo,
         ];
   
  -      final MockTerminal mockTerminal = MockTerminal();
  -
  -      when(mockTerminal.stdinHasTerminal).thenReturn(true);
  -      when(mockTerminal.promptForCharInput(<String>['1', '2', 'q', 'Q'],
  -        displayAcceptedCharacters: false,
  -        logger: anyNamed('logger'),
  -        prompt: anyNamed('prompt'),
  -      )).thenAnswer((Invocation invocation) async => 'q');
  -
  -      final DeviceManager deviceManager = TestDeviceManager(
  -        devices,
  -        logger: BufferLogger.test(),
  -        terminal: mockTerminal,
  +      final FakeTerminal terminal = FakeTerminal()
  +        ..setPrompt(<String>['1', '2', 'q', 'Q'], 'q');
  +
  +      final DeviceManager deviceManager = TestDeviceManager(
  +        devices,
  +        logger: BufferLogger.test(),
  +        terminal: terminal,
         );
         await expectLater(
           () async => deviceManager.findTargetDevices(FakeFlutterProject()),
  
positive.code:         nonEphemeralOne,
          nonEphemeralTwo,
        ];
        final MockTerminal mockTerminal = MockTerminal();
        when(mockTerminal.stdinHasTerminal).thenReturn(true);
        when(mockTerminal.promptForCharInput(<String>['1', '2', 'q', 'Q'],
          displayAcceptedCharacters: false,
          logger: anyNamed('logger'),
          prompt: anyNamed('prompt'),
        )).thenAnswer((Invocation invocation) async => '1');
  
        final DeviceManager deviceManager = TestDeviceManager(
          devices,
          logger: BufferLogger.test(),
          terminal: mockTerminal,
        );
        final List<Device> filtered = await deviceManager.findTargetDevices(FakeFlutterProject());
  
  
negative.code:         nonEphemeralOne,
          nonEphemeralTwo,
        ];
        final FakeTerminal terminal = FakeTerminal()
          ..setPrompt(<String>['1', '2', 'q', 'Q'], '2');
  
        final DeviceManager deviceManager = TestDeviceManager(
          devices,
          logger: BufferLogger.test(),
          terminal: terminal,
        );
        final List<Device> filtered = await deviceManager.findTargetDevices(FakeFlutterProject());
  
  