I read that we should not use mocks if a failed assertion cannot be reported effectively back to the Test Runner. This may be the case if the tested object is running inside a container that catches and eats all exceptions. In these cases we may be better off using a Test Spy.
Could anyone please explain about this? I mean can anybody show an example of an object that's running inside a container where mocks would fail and spy won't?