public List<TimerangePreset> convert(final Map<Period, String> timerangeOptions) {
        if (timerangeOptions == null) {
            return List.of();
        }
        return timerangeOptions.entrySet()
                .stream()
                .map(entry -> new TimerangePreset(
                        periodConverter.apply(entry.getKey()),
                        entry.getValue())
                )
                .collect(Collectors.toList());
    }
@Test
    void testConversionCombinesDescriptionAndProperPeriod() {
        RelativeRange rangeFromConversion = RelativeRange.allTime();
        final Period periodToConvert = Period.years(6000);
        doReturn(rangeFromConversion).when(periodConverter).apply(periodToConvert);
        final List<TimerangePreset> result = toTest.convert(Map.of(periodToConvert, "Long, long time"));

        assertThat(result)
                .isNotNull()
                .hasSize(1)
                .extracting(TimerangePreset::timeRange, TimerangePreset::description)
                .containsOnly(
                        tuple(rangeFromConversion, "Long, long time")
                );

    }