uauv.setSchema(fullnameSchema);
uauv.setStringValue("a value");
attribute.setUniqueValue(uauv);
InvalidEntityException iee = null;
try {
attrDAO.save(attribute);
} catch (InvalidEntityException e) {
iee = e;
}
assertNotNull(iee);
// for attribute
assertTrue(iee.hasViolation(EntityViolationType.InvalidValueList));
// for uauv
assertTrue(iee.hasViolation(EntityViolationType.InvalidUSchema));
}