This is why developers often refer to test cases and their expectations for how our code should behave as documentation, or a design aid, for their actual code.
Testing a service with HTTP
Testing a service (HTTP)
Implementing the service
Why mock?
Think of doing a "test run" of a restaurant
Front-end = waiters
Back-end = cooks
Mock to verify front-end can handle back-end responses