### Question:
DurationUtils { static long getHoursPart(Duration d) { long u = (d.getSeconds() / 60 / 60) % 24; return u; }  static Duration convertDurationFromDaprFormat(String valueString); static String convertDurationToDaprFormat(Duration value);  }### Answer:
@Test public void testGetHoursPart() { Duration d1 = Duration.ZERO.plusHours(26); Assert.assertEquals(2, DurationUtils.getHoursPart(d1)); Duration d2 = Duration.ZERO.plusHours(23); Assert.assertEquals(23, DurationUtils.getHoursPart(d2)); Duration d3 = Duration.ZERO.plusHours(24); Assert.assertEquals(0, DurationUtils.getHoursPart(d3)); }