@Test
public void should_save_when_incident_id_is_null() throws Exception {

    ItemValuesMap itemValues = new ItemValuesMap();
    itemValues.addStringItem(INCIDENT_ID, null);
    String uuid = UUID.randomUUID().toString();
    IncidentService incidentServiceSpy = spy(incidentService);
    when(incidentServiceSpy.generateUniqueId()).thenReturn(uuid);
    Incident actual = incidentServiceSpy.saveOrUpdate(itemValues);
    assertThat("Should return same uuid", actual.getUniqueId(), is(uuid));
}