@Test
public void should_load_incident_form_when_give_cookie_and_module_id() throws Exception {

    IncidentTemplateForm incidentTemplateForm = createIncidentTemplateForm();
    Observable<IncidentTemplateForm> observable = Observable.just(incidentTemplateForm);
    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(incidentFormService, times(1)).saveOrUpdate(any(IncidentForm.class));
    verify(callback, times(1)).onSuccess();
    verify(callback, never()).onFailure();
}