Retrofit-Testing It contains how to write unit test cases for testing the API that we use in our app for fetching the data from backend. Dependencies used: Mock Web Server Mockito More you can find in app level build.gradle file.