AttributeTO csvuserid = new AttributeTO();
csvuserid.setSchema("csvuserid");
userTO.addDerivedAttribute(csvuserid);
MembershipTO membershipTO = new MembershipTO();
membershipTO.setRoleId(1L);
AttributeTO mderived_sx = new AttributeTO();
mderived_sx.setSchema("mderived_sx");
mderived_sx.setValues(Collections.singletonList("sx"));
membershipTO.addAttribute(mderived_sx);
AttributeTO mderived_dx = new AttributeTO();
mderived_dx.setSchema("mderived_dx");
mderived_dx.setValues(Collections.singletonList("dx"));
membershipTO.addAttribute(mderived_dx);
AttributeTO mderiveddata = new AttributeTO();
mderiveddata.setSchema("mderToBePropagated");
membershipTO.addDerivedAttribute(mderiveddata);
userTO.addMembership(membershipTO);
userTO.addResource("resource-csv");