@Test
public void should_show_error_when_sync_incident_form_fail() throws Exception {

    Observable observable = Observable.error(new Exception());
    when(formRemoteService.getIncidentForm("cookie", "en", true, "incident", "primeromodule-gbv"))
            .thenReturn(observable);
    Mockito.when(PrimeroAppConfiguration.getCookie()).thenReturn("cookie");
    Mockito.when(PrimeroAppConfiguration.getDefaultLanguage()).thenReturn("en");
    AppRemoteService.LoadCallback callback = mock(AppRemoteService.LoadCallback.class);
    appRemotePresenter.loadIncidentForm(callback);
    verify(callback, times(1)).onFailure();
    verify(callback, never()).onSuccess();
}