@Test
public void should_update_when_existing_incident_form_is_not_null() {

    IncidentForm existingIncidentForm = mock(IncidentForm.class);
    when(incidentFormDao.getIncidentForm(anyString(), anyString())).thenReturn(existingIncidentForm);
    IncidentForm incidentForm = mock(IncidentForm.class);
    incidentFormService.saveOrUpdate(incidentForm);
    verify(existingIncidentForm,times(1)).setForm(incidentForm.getForm());
    verify(existingIncidentForm,times(1)).update();
}