### Question:
DurationUnitsProvider extends AbstractUnitsProvider<Duration> { @Override public String toShortLabelString(Duration obj) { return obj.toShortLabelString(); } DurationUnitsProvider(); @SuppressWarnings("PMD.PreserveStackTrace") void add(Calendar cal, Duration dur); @Override T convert(Class<T> desiredType, Duration from); @Override T fromUnitsAndMagnitude(Class<T> type, Number magnitude); @Override Class<? extends Duration> getDisplayClass(Duration value); Duration getLargestIntegerUnitType(Duration input); @Override String getLongLabel(Class<? extends Duration> type, boolean plural); @Override String getSelectionLabel(Class<? extends Duration> type); @Override String getShortLabel(Class<? extends Duration> type, boolean plural); @Override Class<Duration> getSuperType(); @Override String toShortLabelString(Duration obj);  }### Answer:
@Test public void testToFromShortLabelString() { DurationUnitsProvider units = new DurationUnitsProvider(); Duration input = new Seconds(BigDecimal.valueOf(827893745.34785384e45)); String str = units.toShortLabelString(input); Duration output = units.fromShortLabelString(str); Assert.assertEquals(input, output); }