@Test
public void should_return_incident_by_incident_id() {

    long incidentId = 1L;
    Incident incident = mock(Incident.class);
    when(incidentDao.getIncidentById(incidentId)).thenReturn(incident);
    assertThat(incidentService.getById(incidentId), is(incident));
    verify(incidentDao, times(1)).getIncidentById(incidentId);
}