MembershipMod membershipMod = new MembershipMod();
membershipMod.setRole(8L);
membershipMod.addAttributeToBeUpdated(attributeMod);
UserMod userMod = new UserMod();
userMod.setId(userTO.getId());
userMod.setPassword("newPassword");
userMod.addAttributeToBeRemoved("userId");
attributeMod = new AttributeMod();
attributeMod.setSchema("userId");
attributeMod.addValueToBeAdded("t.w@spre.net");
userMod.addAttributeToBeUpdated(attributeMod);
userMod.addAttributeToBeRemoved("fullname");
attributeMod = new AttributeMod();
attributeMod.setSchema("fullname");
attributeMod.addValueToBeAdded("g.h@t.com");
userMod.addAttributeToBeUpdated(attributeMod);
userMod.addDerivedAttributeToBeAdded("cn");
userMod.addMembershipToBeAdded(membershipMod);
userMod.addMembershipToBeRemoved(userTO.getMemberships().iterator().next().getId());
userTO = restTemplate.postForObject(BASE_URL + "user/update", userMod, UserTO.class);
assertNotNull(userTO);
SyncopeUser passwordTestUser = new SyncopeUser();