@Test
public void should_get_CP_search_result_by_condition_group() throws Exception {

    Case searchCaseOne = new Case(10000L);
    Case searchCaseTwo = new Case(10001L);
    Case searchCaseThree = new Case(10002L);
    Case searchCaseFour = new Case(10003L);
    List<Case> searchResult = Arrays.asList(new Case[]{
            searchCaseOne,
            searchCaseTwo,
            searchCaseThree,
            searchCaseFour});
    when(caseDao.getCaseListByConditionGroup(anyString(), anyString(), any(ConditionGroup
            .class))).thenReturn
            (searchResult);
    List<Long> actual = caseService.getCPSearchResult("", "", 0, 0, "",
            null);
    assertThat("Should return id list", actual, is(Arrays.asList(new Long[]{10000L, 10001L,
            10002L, 10003L})));
}