### Question:
DateTimeSelector implements TypedValueSelector { @Override public void setValue(final String value) { final DateTimeValue dateTimeValue = converter.fromDMNString(value); view.setValue(dateTimeValue); } @Inject  DateTimeSelector(final DateTimeSelector.View view,
                            final DateTimeValueConverter converter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override Element getElement(); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @Override void select(); @Override String toDisplay(final String rawValue);  }### Answer:
@Test public void testSetValue() { final String dmnString = "dmnString"; when(converter.fromDMNString(dmnString)).thenReturn(dateTime); selector.setValue(dmnString); verify(view).setValue(dateTime); }