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

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	SearchCriteria testSearchCriteria=createsearchCriteria();

	Mockito.when(searchUtil.extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any())).thenReturn(testSearchCriteria);
		
	vXLong.setValue(1);
	Mockito.when(xUserMgr.getXPermMapSearchCount(testSearchCriteria)).thenReturn(vXLong);
	VXLong testvxLong=xUserRest.countXPermMaps(request);
	Mockito.verify(xUserMgr).getXPermMapSearchCount(testSearchCriteria);
	Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any());
			
	assertNotNull(testvxLong);
}