MaintenanceScheduleHelper { public static Duration convertToISODuration(final String timeInterval) { return Duration.between(LocalTime.MIN, convertDurationToLocalTime(timeInterval)); } private  MaintenanceScheduleHelper(); @SuppressWarnings("squid:S1166") static Optional<ZonedDateTime> getNextMaintenanceWindow(final String cronSchedule, final String duration,
            final String timezone); static Cron getCronFromExpression(final String cronSchedule); static void validateMaintenanceSchedule(final String cronSchedule, final String duration,
            final String timezone); static Duration convertToISODuration(final String timeInterval); static void validateDuration(final String duration); static void validateCronSchedule(final String cronSchedule);  }
@Test @Description("Verifies that the Duration object is returned for valid duration format (hh:mm or hh:mm:ss)") public void convertToISODurationValid() { final String duration = "00:10"; assertThat(MaintenanceScheduleHelper.convertToISODuration(duration)).isNotNull().isInstanceOf(Duration.class); }