### Question:
DurationUtils { public static String convertDurationToDaprFormat(Duration value) { String stringValue = ""; if (value == Duration.ZERO || (value.compareTo(Duration.ZERO) == 1)) { long hours = getDaysPart(value) * 24 + getHoursPart(value); StringBuilder sb = new StringBuilder(); sb.append(hours); sb.append("h"); sb.append(getMinutesPart((value))); sb.append("m"); sb.append(getSecondsPart((value))); sb.append("s"); sb.append(getMilliSecondsPart((value))); sb.append("ms"); return sb.toString(); } return stringValue; }  static Duration convertDurationFromDaprFormat(String valueString); static String convertDurationToDaprFormat(Duration value);  }### Answer:
@Test public void negativeDuration() { Duration d = Duration.ofSeconds(-99); String t = DurationUtils.convertDurationToDaprFormat(d); Assert.assertEquals("", t); }