The mocks and stubs and essential features in the test frameworks. Them are used to create fake objects, functions and isolate real requests(DB, API, etc.).
This video shows a real example of code with multiple API requests and how I'm using mocks and stubs to test it.