title: How to unit test Retrofit api calls?
body: <p>I am trying to integrate Unit test cases for every chunk of code possible.
  But I am facing issues while adding test cases for api calls that are <strong>made through retrofit.</strong></p>
  
  <p>The JUnit compiler never executes <strong>the code in the CallBack functions</strong>.</p>
  
  <p>There is another option of making all the api calls <strong>Synchronous</strong> for testing purpose, but that's not possible for every case in my app.</p>
  
  <p>How can I sort this out? I have to add test cases in the api calls by any means.</p>