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

	VXUserPermissionList testVXUserPermissionList= new VXUserPermissionList() ;
	testVXUserPermissionList.setTotalCount(1);
	testVXUserPermissionList.setStartIndex(1);
	VXUserPermission testVXUserPermission=createVXUserPermission();
	List<VXUserPermission> testVXUserPermissions= new ArrayList<VXUserPermission>();
	testVXUserPermissions.add(testVXUserPermission);
	testVXUserPermissionList.setvXModuleDef(testVXUserPermissions);
	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	SearchCriteria testSearchCriteria=createsearchCriteria();
	Mockito.when(searchUtil.extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any())).thenReturn(testSearchCriteria);
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "id", "id",StringUtil.VALIDATION_NAME)).thenReturn("");
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "userPermissionList","userId", StringUtil.VALIDATION_NAME)).thenReturn("");
		
		
	Mockito.when(xUserMgr.searchXUserPermission(testSearchCriteria)).thenReturn(testVXUserPermissionList);
	VXUserPermissionList outputVXUserPermissionList=xUserRest.searchXUserPermission(request);
	assertNotNull(outputVXUserPermissionList);
	assertEquals(outputVXUserPermissionList.getStartIndex(),testVXUserPermissionList.getStartIndex());
	assertEquals(outputVXUserPermissionList.getTotalCount(),testVXUserPermissionList.getTotalCount());
	
	Mockito.verify(xUserMgr).searchXUserPermission(testSearchCriteria);
	Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any());
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "id", "id",StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "userPermissionList","userId", StringUtil.VALIDATION_NAME);
		
}