@Test
public void should_update_when_existing_tracing_form_is_not_null() {

    TracingForm existingTracingForm = mock(TracingForm.class);
    when(tracingFormDao.getTracingForm(PrimeroAppConfiguration.getApiBaseUrl())).thenReturn(existingTracingForm);
    TracingForm tracingForm = mock(TracingForm.class);
    tracingFormService.saveOrUpdate(tracingForm);
    verify(existingTracingForm, times(1)).setForm(tracingForm.getForm());
    verify(existingTracingForm, times(1)).update();
}