Params params = new Params();
params.put("entity2.cities", city.getId().toString());
Validation.clear();
ParamNode rootParamNode = ParamNode.convert(params.all());
entity2.edit(rootParamNode, "entity2");
// Here we have a problem has the payment gateways can be modified
assertFalse(Validation.hasErrors());
entity2.save();