Android Unit Test with Retrofit2 and Mockito or Robolectric
<p>Can I test real response from retrofit2beta4? Do i need Mockito or Robolectic?</p>

<p>I don't have activities in my project, it will be a library and I need to test is server responding correctly.
Now I have such code and stuck...</p>

<pre><code>@Mock
ApiManager apiManager;

@Captor
private ArgumentCaptor&lt;ApiCallback&lt;Void&gt;&gt; cb;

@Before
public void setUp() throws Exception {
    apiManager = ApiManager.getInstance();
    MockitoAnnotations.initMocks(this);
}

@Test
public void test_login() {
    Mockito.verify(apiManager)
           .loginUser(Mockito.eq(login), Mockito.eq(pass), cb.capture());
    // cb.getValue();
    // assertEquals(cb.getValue().isError(), false);
}
</code></pre>

<p>I can make fake response, but I need to test real. Is it success? Is it's body correct?
Can you help me with code?</p>