If I have a bean like
@Data
@Validated
@EqualsAndHashCode(callSuper = true)
@Document(collection = "Xxx")
public class XxxDocument extends Zzz {
    @Min(0)
    @Max(255)
    private Integer aProperty;
}
How can I write a test using assertJ that checks whether the setting of aProperty raised a ConstraintViolationException? I would like to use Lombok's @Data annotation to avoid writing the getters and setters where I could declare that the setter throws this exception.
 
     
    