### Question:
DataTypeConstraintRange implements DataTypeConstraintComponent { @Override public void setConstraintValueType(final String type) { view.setComponentSelector(type); view.setPlaceholders(placeholderHelper.getPlaceholderSample(type)); } @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 testSetConstraintValueType() { final String type = "string"; final String placeholder = "placeholder"; when(placeholderHelper.getPlaceholderSample(type)).thenReturn(placeholder); constraintRange.setConstraintValueType(type); verify(view).setPlaceholders(placeholder); verify(view).setComponentSelector(type); }