Examples using different mechanisms of testing for Retrofit in Android
Java

README.md

android-retrofit-test-examples

Example usage for testing different server responses from an API. This is using Retrofit 2, Retrofit Mock Webservers and Espresso.

Check out the blog post http://wp.me/p6bCW9-4d