A mock object is a simulated object that mimics the behavior of a real object in controlled ways. It is used primarily in the context of software testing, particularly in unit testing, where it helps developers isolate the functionality of the code being tested.
New to topics? Read the docs here!