@Test
public void should_load_tracing_form_when_give_cookie_and_module_id() throws Exception {

    TracingTemplateForm tracingTemplateForm = createTracingTemplateForm();
    Observable<TracingTemplateForm> observable = Observable.just(tracingTemplateForm);
    when(formRemoteService.getTracingForm("cookie", "en", true, "tracing_request", "primeromodule-cp"))
            .thenReturn(observable);
    Mockito.when(PrimeroAppConfiguration.getCookie()).thenReturn("cookie");
    Mockito.when(PrimeroAppConfiguration.getDefaultLanguage()).thenReturn("en");
    AppRemoteService.LoadCallback callback = mock(AppRemoteService.LoadCallback.class);
    appRemotePresenter.loadTracingForm(callback);
    verify(tracingFormService, times(1)).saveOrUpdate(any(TracingForm.class));
    verify(callback, times(1)).onSuccess();
    verify(callback, never()).onFailure();
}