public CeQueueDto setTaskType(String s) {
    checkArgument(s.length() <= 40, "Value of task type is too long: %s", s);
    this.taskType = s;
    return this;
  }
@Test
  void setTaskType_throws_IAE_if_value_is_41_chars() {
    String str_41_chars = STR_40_CHARS + "a";

    assertThatThrownBy(() -> underTest.setTaskType(str_41_chars))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Value of task type is too long: " + str_41_chars);
  }