### Question:
IncidentService extends RecordService { public List<Long> getAllOrderByAgeDES() { return extractIds(incidentDao.getAllIncidentsOrderByAge(false, PrimeroAppConfiguration.getCurrentUsername(), TextUtils.lintUrl(PrimeroAppConfiguration.getApiBaseUrl()))); } IncidentService();  IncidentService(IncidentDao incidentDao); Incident getById(long incidentId); Incident getByUniqueId(String uniqueId); List<Incident> getAll(); List<Long> getAllOrderByDateASC(); List<Long> getAllOrderByDateDES(); List<Long> getAllOrderByAgeASC(); List<Long> getAllOrderByAgeDES(); List<Long> getSearchResult(String uniqueId, String survivorCode, int ageFrom, int ageTo, String
            typeOfViolence, String location); Incident saveOrUpdate(ItemValuesMap itemValues); Incident save(ItemValuesMap itemValues); Incident update(ItemValuesMap itemValues); Incident deleteByRecordId(long recordId); Incident getByInternalId(String id); boolean hasSameRev(String id, String rev); List<Long> getAllSyncedRecordsId(); static final String TAG; static final String INCIDENT_DISPLAY_ID; static final String INCIDENT_ID; static final String INCIDENT_PRIMARY_ID; static final String EMPTY_ID; }### Answer:
@Test public void should_return_all_order_ids_sorted_by_age_descending() { Incident[] orders = new Incident[]{new Incident(1), new Incident(2), new Incident(3)}; List<Incident> orderList = Arrays.asList(orders); when(incidentDao.getAllIncidentsOrderByAge(false, PrimeroAppConfiguration.getCurrentUser().getUsername(), TextUtils.lintUrl(url))).thenReturn(orderList); assertThat(incidentService.getAllOrderByAgeDES(), is(Arrays.asList(new Long[]{1L, 2L, 3L}))); verify(incidentDao, times(1)).getAllIncidentsOrderByAge(false, PrimeroAppConfiguration.getCurrentUser() .getUsername(), TextUtils.lintUrl(url)); }