AuthSessionService extends
		AbstractBaseResourceService<XXAuthSession, VXAuthSession> { public VXAuthSessionList search(SearchCriteria searchCriteria) { VXAuthSessionList returnList = new VXAuthSessionList(); List<VXAuthSession> viewList = new ArrayList<VXAuthSession>(); List<XXAuthSession> resultList = searchResources(searchCriteria, AUTH_SESSION_SEARCH_FLDS, AUTH_SESSION_SORT_FLDS, returnList); for (XXAuthSession gjObj : resultList) { VXAuthSession viewObj = populateViewBean(gjObj); viewList.add(viewObj); } returnList.setVXAuthSessions(viewList); return returnList; }  VXAuthSessionList search(SearchCriteria searchCriteria); static final String NAME; static final List<SortField> AUTH_SESSION_SORT_FLDS; static List<SearchField> AUTH_SESSION_SEARCH_FLDS; }
@Test public void test4search() { SearchCriteria testSearchCriteria = createsearchCriteria(); EntityManager em = null; Mockito.when(authSessionService.getDao().getEntityManager()).thenReturn(em); authSessionService.search(testSearchCriteria); }