Question: what are mock objects java?
Answer: A Mock object is something used for unit testing. If you have an object whose methods you want to test, and those methods depend on some other object, you create a mock of the dependency rather than an actual instance of that dependency. ... Common Java frameworks for creating mock objects include JMock and EasyMock.