### Question:
DurationUtils { static long getSecondsPart(Duration d) { long u = d.getSeconds() % 60; return u; }  static Duration convertDurationFromDaprFormat(String valueString); static String convertDurationToDaprFormat(Duration value);  }### Answer:
@Test public void testGetSecondsPart() { Duration d1 = Duration.ZERO.plusSeconds(61); Assert.assertEquals(1, DurationUtils.getSecondsPart(d1)); Duration d2 = Duration.ZERO.plusSeconds(60); Assert.assertEquals(0, DurationUtils.getSecondsPart(d2)); Duration d3 = Duration.ZERO.plusSeconds(59); Assert.assertEquals(59, DurationUtils.getSecondsPart(d3)); Duration d4 = Duration.ZERO.plusSeconds(3600); Assert.assertEquals(0, DurationUtils.getSecondsPart(d4)); }