What is Mocking?
Replace real dependencies with controllable fakes in tests.
Substituting a dependency (HTTP client, database, clock) with a stand-in whose behavior the test controls and asserts on. Keeps unit tests fast and deterministic; over-mocking, though, produces tests that verify implementation instead of behavior.