@Test
public void test16ChangePassword() {

	XXPortalUser xxPUser = new XXPortalUser();
	VXResponse vxResponseExp = new VXResponse();
	vxResponseExp.setStatusCode(10);
	XXPortalUserDao xxPortalUserDao = Mockito.mock(XXPortalUserDao.class);
	Mockito.when(daoManager.getXXPortalUser()).thenReturn(xxPortalUserDao);
	Mockito.when(restErrorUtil.createRESTException("serverMsg.userRestUser",MessageEnums.DATA_NOT_FOUND, null, null, changePassword.getLoginId())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	VXResponse vxResponseAct = userREST.changePassword(userId, changePassword);
	Assert.assertNotNull(vxResponseAct);
	Assert.assertEquals(vxResponseExp, vxResponseAct);
	Assert.assertEquals(vxResponseExp.getStatusCode(), vxResponseAct.getStatusCode());
	Mockito.verify(daoManager).getXXPortalUser();
	Mockito.verify(xxPortalUserDao).getById(userId);
	Mockito.verify(userManager).checkAccessForUpdate(xxPUser);
	Mockito.verify(changePassword).setId(userId);
	Mockito.verify(userManager).changePassword(changePassword);
}