@Test
public void should_get_incidents_ids_when_incidents_exits() throws Exception {

    List<Incident> incidents = new ArrayList<>();
    Incident incident = new Incident(10086L);
    incidents.add(incident);
    List<String> listStr = new ArrayList<>();
    CaseService caseServiceSpy = spy(caseService);
    when(incidentDao.getAllIncidentsByCaseUniqueId(anyString())).thenReturn(incidents);
    when(caseServiceSpy.extractUniqueIds(incidents)).thenReturn(listStr);
    assertThat("Should return same incident string list", caseServiceSpy.getIncidentsByCaseId(""), is(listStr));
}