UserTO toBeUpdated = userService.read(created.getId());
UserMod userMod = new UserMod();
userMod.setId(toBeUpdated.getId());
userMod.setPassword("password2");
// assign new resource to user
userMod.addResourceToBeAdded(RESOURCE_NAME_WS2);
//modify virtual attribute
userMod.addVirtualAttributeToBeRemoved("virtualdata");
userMod.addVirtualAttributeToBeUpdated(attributeMod("virtualdata", "test@testoneone.com"));
// check Syncope change password