@SuppressWarnings("unchecked")
@Test
public void test48searchXPermMaps() {

	VXPermMap permMap = testcreateXPermMap();
	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	SearchCriteria testSearchCriteria=createsearchCriteria();
	Mockito.when(searchUtil.extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any())).thenReturn(testSearchCriteria);

	List <VXPermMap> vXPermMaps= new ArrayList<VXPermMap>();
	vXPermMaps.add(permMap);
	VXPermMapList testvXGroupList=new VXPermMapList() ;
	testvXGroupList.setTotalCount(1);
	testvXGroupList.setVXPermMaps(vXPermMaps);
	Mockito.when(xUserMgr.searchXPermMaps(testSearchCriteria)).thenReturn(testvXGroupList);
	VXPermMapList outputvXGroupList=xUserRest.searchXPermMaps(request);
	
	Mockito.verify(xUserMgr).searchXPermMaps(testSearchCriteria);
	Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any());
	
	assertNotNull(outputvXGroupList);
	assertEquals(outputvXGroupList.getClass(),testvXGroupList.getClass());
	assertEquals(outputvXGroupList.getTotalCount(),testvXGroupList.getTotalCount());
}