@Test
public void test1SearchUsers() {

	SearchCriteria searchCriteria = new SearchCriteria();
	vXPUserExpList = new VXPortalUserList();
	vXPUserExpList.setPageSize(pageSize);
	List<Integer> status = new ArrayList<Integer>();
	String publicScreenName = "nrp";
	List<String> roles = new ArrayList<String>();
	Mockito.when(searchUtil.extractCommonCriterias(Matchers.eq(request), Matchers.anyListOf(SortField.class))).thenReturn(searchCriteria);
	Mockito.when(searchUtil.extractLong(request, searchCriteria, "userId", "User Id")).thenReturn(userId);
	Mockito.when(searchUtil.extractString(request, searchCriteria, "loginId", "Login Id", null))
			.thenReturn(loginId);
	Mockito.when(searchUtil.extractString(request, searchCriteria, "emailAddress", "Email Address", null))
			.thenReturn(emailId);
	Mockito.when(searchUtil.extractString(request, searchCriteria, "firstName", "First Name",
			StringUtil.VALIDATION_NAME)).thenReturn(firstName);
	Mockito.when(
			searchUtil.extractString(request, searchCriteria, "lastName", "Last Name", StringUtil.VALIDATION_NAME))
			.thenReturn(lastName);
	Mockito.when(searchUtil.extractEnum(request, searchCriteria, "status", "Status", "statusList",
			RangerConstants.ActivationStatus_MAX)).thenReturn(status);
	Mockito.when(searchUtil.extractString(request, searchCriteria, "publicScreenName", "Public Screen Name",
			StringUtil.VALIDATION_NAME)).thenReturn(publicScreenName);
	Mockito.when(searchUtil.extractStringList(request, searchCriteria, "role", "Role", "roleList",
			configUtil.getRoles(), StringUtil.VALIDATION_NAME)).thenReturn(roles);
	Mockito.when(userManager.searchUsers(searchCriteria)).thenReturn(vXPUserExpList);
	VXPortalUserList vXPUserListAct = userREST.searchUsers(request);
	Assert.assertNotNull(vXPUserListAct);
	Assert.assertEquals(vXPUserExpList, vXPUserListAct);
	Assert.assertEquals(vXPUserExpList.getPageSize(), vXPUserListAct.getPageSize());
	Mockito.verify(searchUtil).extractCommonCriterias(Matchers.eq(request), Matchers.anyListOf(SortField.class));
	Mockito.verify(searchUtil).extractLong(request, searchCriteria, "userId", "User Id");
	Mockito.verify(searchUtil).extractString(request, searchCriteria, "loginId", "Login Id", null);
	Mockito.verify(searchUtil).extractString(request, searchCriteria, "emailAddress", "Email Address", null);
	Mockito.verify(searchUtil).extractString(request, searchCriteria, "firstName", "First Name",
			StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractString(request, searchCriteria, "lastName", "Last Name",
			StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractEnum(request, searchCriteria, "status", "Status", "statusList",
			RangerConstants.ActivationStatus_MAX);
	Mockito.verify(searchUtil).extractString(request, searchCriteria, "publicScreenName", "Public Screen Name",
			StringUtil.VALIDATION_NAME);
	Mockito.verify(searchUtil).extractStringList(request, searchCriteria, "role", "Role", "roleList",
			configUtil.getRoles(), StringUtil.VALIDATION_NAME);
	Mockito.verify(userManager).searchUsers(searchCriteria);
}