Question: mock objects are useful in which situation?
Answer: A mock object can be useful in place of a real object that: Runs slowly or inefficiently in practical situations. Occurs rarely and is difficult to produce artificially. Produces non-deterministic results.