Actually, I need to get a response of an API call, for that I required Context.
Context
It is safer to use Robolectric.getShadowApplication() instead of using Robolectric.application directly.
Robolectric.getShadowApplication()
Robolectric.application