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