### Question:
DayTimeValueConverter { String toDMNString(final DayTimeValue value) { final JavaScriptObject properties = makeProperties(value.getDays(), value.getHours(), value.getMinutes(), value.getSeconds()); return addFunctionCall(moment.duration(properties).toISOString()); } @Inject  DayTimeValueConverter(final TranslationService translationService);   }### Answer:
@Test public void testToDMNString() { final DayTimeValue value = new DayTimeValue(2, 4, 8, 16); final String momentISOString = "P2DT4H8M16S"; final String expected = "duration(\"P2DT4H8M16S\")"; when(momentDuration.duration(javaScriptObject.capture())).thenReturn(momentDuration); when(momentDuration.toISOString()).thenReturn(momentISOString); final String actual = converter.toDMNString(value); assertEquals(expected, actual); }