@Test
public void should_not_delete_when_incident_exists_and_not_synced_yet() throws Exception {

    long recordId = 123L;
    Incident deleteIncident = new Incident(recordId);
    deleteIncident.setSynced(false);
    when(incidentDao.getIncidentById(recordId)).thenReturn(deleteIncident);
    Incident actual = incidentService.deleteByRecordId(recordId);
    verify(incidentDao, never()).delete(deleteIncident);
    assertNull(actual);
}