mock object
noun1
An object that mimics the behavior of a real object in a controlled way, often used as part of unit testing.
Object-oriented programming
- Mock objects (mocks, for short) are perfectly suited for testing a portion of code logic in isolation from the rest of the code.2020, Cătălin Tudose, JUnit in Action, 3rd edition, Simon and Schuster, →ISBN, page 139: