@Test
public void test11DeactivateUser() {

	VXPortalUser vxPUserExp = CreateVXPortalUser();
	XXPortalUser xxPUserExp = new XXPortalUser();
	xxPUserExp.setLoginId(loginId);
	xxPUserExp.setStatus(1);
	vxPUserExp.setStatus(5);
	XXPortalUserDao xxPortalUserDao = Mockito.mock(XXPortalUserDao.class);
	Mockito.when(daoManager.getXXPortalUser()).thenReturn(xxPortalUserDao);
	Mockito.when(xxPortalUserDao.getById(userId)).thenReturn(xxPUserExp);
	Mockito.when(userManager.deactivateUser(xxPUserExp)).thenReturn(vxPUserExp);
	VXPortalUser vxPUserAct = userREST.deactivateUser(userId);
	Assert.assertNotNull(vxPUserAct);
	Assert.assertEquals(xxPUserExp.getLoginId(), vxPUserAct.getLoginId());
	Assert.assertEquals(vxPUserExp.getStatus(), vxPUserAct.getStatus());
	Assert.assertEquals(vxPUserExp.getId(), vxPUserAct.getId());
	Assert.assertEquals(vxPUserExp.getFirstName(), vxPUserAct.getFirstName());
	Mockito.verify(daoManager).getXXPortalUser();
	Mockito.verify(xxPortalUserDao).getById(userId);
	Mockito.verify(userManager).deactivateUser(xxPUserExp);
}