assertEquals(attributeSchema, actual);
}
@Test(expected = InvalidEntityException.class)
public void saveNonValid() {
USchema attributeSchema = new USchema();
attributeSchema.setName("secondaryEmail");
attributeSchema.setType(AttributeSchemaType.String);
attributeSchema.setValidatorClass("org.apache.syncope.core.validation.EmailAddressValidator");
attributeSchema.setMandatoryCondition("false");
attributeSchema.setMultivalue(true);
attributeSchema.setUniqueConstraint(true);
schemaDAO.save(attributeSchema);
}