Mocking is a technique used during software development that allows you to imitate a 3rd party service whose code you did not write. It may be a backend API, payment service or email service. Mocking is quite often used when you want to develop an application being offline or when testing.

Mocking and testing
HTTP Mocking