attribute.setOwner(user);
Exception thrown = null;
try {
attribute.addValue("john.doe@gmail.com", AttributableUtil.getInstance(AttributableType.USER));
attribute.addValue("mario.rossi@gmail.com", AttributableUtil.getInstance(AttributableType.USER));
} catch (ValidationException e) {
LOG.error("Unexpected exception", e);
thrown = e;
}
assertNull("no validation exception expected here ", thrown);