public void checkForEnumType() {
SyncopeUser user = userDAO.find(1L);
Membership membership = user.getMembership(1L);
assertNotNull(membership);
MSchema schema = new MSchema();
schema.setType(AttributeSchemaType.Enum);
schema.setName("color");
schema.setEnumerationValues("red" + SyncopeConstants.ENUM_VALUES_SEPARATOR + "yellow");
MSchema actualSchema = schemaDAO.save(schema);
assertNotNull(actualSchema);
MAttrTemplate template = new MAttrTemplate();
template.setSchema(actualSchema);
membership.getSyncopeRole().getAttrTemplates(MAttrTemplate.class).add(template);