@Before
    public void beforeEachTest() throws IOException {
        mockWebServer = new MockWebServer();
        mockWebServer.start();

        // Change base url to the mocked
        QualityMattersIntegrationRobolectricTestRunner.qualityMattersApp().applicationComponent().changeableBaseUrl().setBaseUrl(mockWebServer.url("").toString());

        qualityMattersRestApi = QualityMattersIntegrationRobolectricTestRunner.qualityMattersApp().applicationComponent().qualityMattersApi();
    }
Main purpose of Integration tests is to check that all layers of your app work correctly, for example:
<ul>
<li>Http layer</li>
<li>REST layer</li>
<li>Parsing/Serializing layer</li>
<li>Execution layer (ie RxJava)</li>
</ul>
app/src/integrationTests/java/com/artemzin/qualitymatters/integration_tests/api/QualityMattersRestApiIntegrationTest.java