@Test
public void should_return_search_result_when_give_search_conditions() throws Exception {

    Incident[] orders = new Incident[]{new Incident(3), new Incident(2), new Incident(1)};
    List<Incident> orderList = Arrays.asList(orders);
    when(incidentDao.getIncidentListByConditionGroup(anyString(), anyString(), any
            (ConditionGroup.class))).thenReturn
            (orderList);
    Assert.assertThat("When call getCPSearchResult() should return search result depends on " +
                    "search " +
                    "condition",
            incidentService.getSearchResult("uniqueId", "survivor_code", 1, 20, "type_of_violence ", "location"),
            is(Arrays.asList(new Long[]{3L, 2L, 1L})));
}