But in the actual code utilizing that function you'll probably want to know whether it succeeded or failed, right?
...
If you don't control or can't affect the code your are testing and there is no hooks that you can mock, I would probably not test that part of the code.
Контекст: юнит тесты