### Question:
DurationConverter implements AttributeConverter<Duration, String> { @Override public Duration convertToEntityAttribute(String durationString) { if (durationString != null) { return Duration.parse(durationString); } else { return null; } }  @Override String convertToDatabaseColumn(Duration duration); @Override Duration convertToEntityAttribute(String durationString);  }### Answer:
@Test void convertToEntityAttribute() { assertThat(durationConverter.convertToEntityAttribute(threeDaysString)).isEqualTo(threeDaysDuration); assertThat(durationConverter.convertToEntityAttribute(threeHoursString)).isEqualTo(threeHoursDuration); assertThat(durationConverter.convertToEntityAttribute(threeMinutesString)).isEqualTo(threeMinutesDuration); assertThat(durationConverter.convertToEntityAttribute(threeSecondsString)).isEqualTo(threeSecondsDuration); assertThat(durationConverter.convertToEntityAttribute(null)).isNull(); }