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