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


	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.extractLong(request, testSearchCriteria, "id", "Auth Session Id")).thenReturn(1L);
	Mockito.when(searchUtil.extractLong(request, testSearchCriteria, "userId", "User Id")).thenReturn(1L);
	Mockito.when(searchUtil.extractInt(request, testSearchCriteria, "authStatus", "Auth Status")).thenReturn(1);
	Mockito.when(searchUtil.extractInt(request, testSearchCriteria, "deviceType", "Device Type")).thenReturn(1);
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "firstName", "User First Name", StringUtil.VALIDATION_NAME)).thenReturn("");
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "lastName", "User Last Name", StringUtil.VALIDATION_NAME)).thenReturn("");
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "requestUserAgent", "User Agent", StringUtil.VALIDATION_TEXT)).thenReturn("");
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "requestIP", "Request IP Address", StringUtil.VALIDATION_IP_ADDRESS)).thenReturn("");
	Mockito.when(searchUtil.extractString(request, testSearchCriteria, "loginId", "Login ID", StringUtil.VALIDATION_TEXT)).thenReturn("");
	
	
	VXAuthSessionList testVXAuthSessionList=new VXAuthSessionList();
	testVXAuthSessionList.setTotalCount(1);
	testVXAuthSessionList.setStartIndex(1);
	VXAuthSession testVXAuthSession = createVXAuthSession();
	List<VXAuthSession> testvXAuthSessions = new ArrayList<VXAuthSession>();
	testvXAuthSessions.add(testVXAuthSession);
	
	testVXAuthSessionList.setVXAuthSessions(testvXAuthSessions);
	Mockito.when(sessionMgr.searchAuthSessions(testSearchCriteria)).thenReturn(testVXAuthSessionList);
	VXAuthSessionList outputvXGroupList=xUserRest.getAuthSessions(request);
	
	Mockito.verify(sessionMgr).searchAuthSessions(testSearchCriteria);
	Mockito.verify(searchUtil).extractCommonCriterias((HttpServletRequest)Mockito.any() ,(List<SortField>)Mockito.any());
	Mockito.verify(searchUtil).extractLong(request, testSearchCriteria, "id", "Auth Session Id");
	Mockito.verify(searchUtil).extractLong(request, testSearchCriteria, "userId", "User Id");
	Mockito.verify(searchUtil).extractInt(request, testSearchCriteria, "authStatus", "Auth Status");
               Mockito.verify(searchUtil).extractInt(request, testSearchCriteria, "authType", "Login Type");
	Mockito.verify(searchUtil).extractInt(request, testSearchCriteria, "deviceType", "Device Type");
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "firstName", "User First Name", StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "lastName", "User Last Name", StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "requestUserAgent", "User Agent", StringUtil.VALIDATION_TEXT);
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "requestIP", "Request IP Address", StringUtil.VALIDATION_IP_ADDRESS);
	Mockito.verify(searchUtil).extractString(request, testSearchCriteria, "loginId", "Login ID", StringUtil.VALIDATION_TEXT);
               Mockito.verify(searchUtil).extractDate(request, testSearchCriteria, "startDate", "Start Date", null);
               Mockito.verify(searchUtil).extractDate(request, testSearchCriteria, "endDate", "End Date", null);
	assertNotNull(outputvXGroupList);
	assertEquals(outputvXGroupList.getStartIndex(),testVXAuthSessionList.getStartIndex());
	assertEquals(outputvXGroupList.getTotalCount(), testVXAuthSessionList.getTotalCount());
}