membership.getSyncopeRole().getAttrTemplates(MAttrTemplate.class).add(template);
MAttr attr = new MAttr();
attr.setTemplate(template);
attr.setOwner(membership);
attr.addValue("yellow", AttributableUtil.getInstance(AttributableType.MEMBERSHIP));
membership.addAttr(attr);
MAttr actualAttribute = userDAO.save(user).getMembership(1L).getAttr("color");
assertNotNull(actualAttribute);