What is Mocking in Unit Testing and When to use

Unit testing can be explained as verification on the code…