def METHOD_NAME(self, mock):
    instance = mock.return_value
    instance.wait.return_value = 0
    instance.communicate.return_value = (self.output_ok, '')
    mock_stdout = unittest.mock.patch(
        'sys.stdout', new=None)  # Simulate detached console
    with mock_stdout:
        ep = ExecProvider(self.input_ok, None)
        result = ep.run()
        self.assertTrue(isinstance(result, dict))
        self.assertTrue('token' in result)