### Question:
DataTypeConstraintRange implements DataTypeConstraintComponent { @Override public void setValue(final String value) { clientServicesProxy.parseRangeValue(value, new ServiceCallback<RangeValue>() { @Override public void onSuccess(final RangeValue item) { loadConstraintValue(item); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValue(new RangeValue()); } }); } @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 @SuppressWarnings("unchecked") public void testSetValue() { final String value = "value"; constraintRange.setValue(value); verify(clientServicesProxy).parseRangeValue(eq(value), any(ServiceCallback.class)); }