### Question:
DataTypeConstraintRange implements DataTypeConstraintComponent { void loadConstraintValue(final RangeValue rangeValue) { view.setIncludeStartValue(rangeValue.getIncludeStartValue()); view.setStartValue(rangeValue.getStartValue()); view.setEndValue(rangeValue.getEndValue()); view.setIncludeEndValue(rangeValue.getIncludeEndValue()); if (!StringUtils.isEmpty(rangeValue.getStartValue()) && !StringUtils.isEmpty(rangeValue.getEndValue())) { enableOkButton(); } else { disableOkButton(); } } @Inject  DataTypeConstraintRange(final View view,
                                   final ConstraintPlaceholderHelper placeholderHelper,
                                   final DMNClientServicesProxy clientServicesProxy,
                                   final Event<DataTypeConstraintParserWarningEvent> parserWarningEvent); @Override String getValue(); @Override void setValue(final String value); @Override void setConstraintValueType(final String type); @Override Element getElement(); void setModal(final DataTypeConstraintModal modal);  }### Answer:
@Test public void testLoadConstraintValue() { constraintRange.setModal(modal); final RangeValue rangeValue = new RangeValue(); rangeValue.setIncludeStartValue(true); rangeValue.setIncludeEndValue(true); rangeValue.setStartValue("0"); rangeValue.setEndValue("1"); constraintRange.loadConstraintValue(rangeValue); verify(view).setIncludeStartValue(true); verify(view).setIncludeEndValue(true); verify(view).setStartValue("0"); verify(view).setEndValue("1"); verify(constraintRange).enableOkButton(); }