@Test
public void should_return_all_order_ids_sorted_by_ascending() throws Exception {

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