@Test
public void test9Update() {

	VXPortalUser vxPUserExp = new VXPortalUser();
	XXPortalUser xxPUserExp = new XXPortalUser();
	xxPUserExp = null;
	XXPortalUserDao xxPortalUserDao = Mockito.mock(XXPortalUserDao.class);
	Mockito.when(daoManager.getXXPortalUser()).thenReturn(xxPortalUserDao);
	Mockito.doNothing().when(userManager).checkAccess(xxPUserExp);
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyString(), (MessageEnums) Mockito.any(),
			Mockito.nullable(Long.class), Mockito.nullable(String.class), Mockito.anyString())).thenReturn(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	userREST.update(vxPUserExp, request);
	Mockito.verify(daoManager).getXXPortalUser();
	Mockito.verify(xxPortalUserDao).getById(Mockito.anyLong());
	Mockito.verify(userManager).checkAccess(xxPUserExp);
	Mockito.verify(restErrorUtil).createRESTException(Mockito.anyString(), (MessageEnums) Mockito.any(),
			Mockito.anyLong(), Mockito.anyString(), Mockito.anyString());
}