AppRemotePresenter { public void saveTracingForm(RecordForm recordForm) { Blob tracingFormBlob = new Blob(gson.toJson(recordForm).getBytes()); TracingForm tracingForm = new TracingForm(tracingFormBlob); tracingForm.setModuleId(MODULE_ID_CP); tracingFormService.saveOrUpdate(tracingForm); } @Inject  AppRemotePresenter(Lazy<FormRemoteService> formRemoteService,
                              CaseFormService caseFormService,
                              TracingFormService tracingFormService,
                              IncidentFormService incidentFormService,
                              Lazy<SystemSettingsService> systemSettingsService);  AppRemotePresenter(FormRemoteService formRemoteService,
                              CaseFormService caseFormService,
                              TracingFormService tracingFormService,
                              IncidentFormService incidentFormService,
                              SystemSettingsService systemSettingsService); void loadCaseForm(String moduleId, AppRemoteService.LoadCallback callback); void saveCaseForm(RecordForm recordForm, String moduleId); void loadTracingForm(AppRemoteService.LoadCallback callback); void saveTracingForm(RecordForm recordForm); void loadIncidentForm(AppRemoteService.LoadCallback callback); void saveIncidentForm(RecordForm recordForm); void loadSystemSettings();  }
@Test public void should_save_form_when_give_tracing_form() throws Exception { TracingTemplateForm tracingTemplateForm = createTracingTemplateForm(); appRemotePresenter.saveTracingForm(tracingTemplateForm); verify(tracingFormService, times(1)).saveOrUpdate(any(TracingForm.class)); }