@Test
public void should_return_all_order_ids_sorted_by_descending() throws Exception {

    Tracing[] orders = new Tracing[]{new Tracing(3), new Tracing(2), new Tracing(1)};
    List<Tracing> orderList = Arrays.asList(orders);
    when(tracingDao.getAllTracingsOrderByDate(false, PrimeroAppConfiguration.getCurrentUsername(), TextUtils
            .lintUrl(url)))
            .thenReturn(orderList);
    assertThat("When call getAllOrderByDateDES() should return orders sorted by date.",
            tracingService.getAllOrderByDateDES(), is(Arrays.asList(new Long[]{3L, 2L, 1L})));
}