Introduction
Mockito helps us test code by creating fake objects. Setting it up means adding the right tools to your project so you can use Mockito easily.
When you want to test a class that uses other classes without running the real ones.
When you need to check how your code behaves with different responses from other parts.
When you want to write tests faster by avoiding complex setup of real objects.