What is mock Jun 29, 2009 • Fred Yang A mock object is a fake object in the system that decides whether the unit test has passed or failed. It does so by verifying whether the object under test interacted as expected with the fake object. Please enable JavaScript to view the comments powered by Disqus.