### Question:
ClientRelativeDateRange extends ClientLiteral<String, ClientRelativeDateRange> { @Pattern(regexp = DomELCommonSimpleDateFormats.DATE_RANGE_PATTERN_STRING, message = "domel.relative.date.range.value.invalid") public ClientRelativeDateRange setValue(String expression) { this.value = expression; return this; } ClientRelativeDateRange();  ClientRelativeDateRange(String relativeRange);  ClientRelativeDateRange(ClientRelativeDateRange d); @Override String getValue(); @Pattern(regexp = DomELCommonSimpleDateFormats.DATE_RANGE_PATTERN_STRING, message = "domel.relative.date.range.value.invalid") ClientRelativeDateRange setValue(String expression); @Override void accept(ClientELVisitor visitor); @Override ClientRelativeDateRange deepClone(); static final String EXPRESSION_ID; }### Answer:
@Test @Disabled("FIXME: This is now handled by an annotation validation") public void nullValueCanNotBeSet() { final ClientRelativeDateRange instance = new ClientRelativeDateRange(DATE_RANGE_VALUE); assertThrows(IllegalArgumentException.class, new Executable() { @Override public void execute() { instance.setValue(null); } }); }
@Test @Disabled("FIXME: This is now handled by an annotation validation") public void incorrectDateRangeValueCanNotBeSet() { final ClientRelativeDateRange instance = new ClientRelativeDateRange(DATE_RANGE_VALUE); assertThrows(IllegalArgumentException.class, new Executable() { @Override public void execute() { instance.setValue(NOT_DATE_RANGE_VALUE); } }); }