Mock Objects are simulated objects that mimic the behavior of actual objects under controlled conditions. They are generally created by a programmer to test the behavior and patterns of the corresponding real-life object. They are generally created in the context of automated unit testing. Overall, they are a controversial and much- debated part of development, having both detractors and supporters.
- “Mock Object Testing with Examples Using EasyMock”(book), by Scott McMaster.