@Test
public void testInvalidCron() {

  assertThatThrownBy(
      () -> scheduler.scheduleJobIfAbsent("0 5 * * * *", createJobDescription()))
      .isInstanceOf(SchedulerException.class)
      .hasMessageContaining("The cron expression string");
}