    @Test
    @Description("Verifies that the InvalidMaintenanceScheduleException is thrown for invalid duration format")
    public void validateDurationInvalid() {

        final String duration = "10";
        assertThatThrownBy(() -> MaintenanceScheduleHelper.validateDuration(duration))
                .isInstanceOf(InvalidMaintenanceScheduleException.class).hasMessage("Provided duration is not valid")
                .extracting("durationErrorIndex").containsExactly(2);
    }