Mocks are simulated objects that mimic the behavior of real objects in controlled ways, used to simplify and isolate tests.