Actually, I need to get a response of an API call, for that I required Context.
Context
This works for me with Robolectric 3.5.1: ShadowApplication.getInstance().applicationContext
ShadowApplication.getInstance().applicationContext