@Test
public void should_return_incident_list() {

    Incident incident = new Incident();
    List<Incident> incidentList = new ArrayList<Incident>();
    incidentList.add(incident);
    when(incidentDao.getAllIncidentsOrderByDate(false, PrimeroAppConfiguration.getCurrentUser().getUsername(),
            TextUtils.lintUrl(url)))
            .thenReturn(incidentList);
    assertThat(incidentService.getAll(), is(incidentList));
    verify(incidentDao, times(1)).getAllIncidentsOrderByDate(false, PrimeroAppConfiguration.getCurrentUser()
            .getUsername(), TextUtils.lintUrl(url));
}