### Question:
DataTypeConstraintRangeView implements DataTypeConstraintRange.View { @Override public String getEndValue() { return endValueComponent.getValue(); } @Inject  DataTypeConstraintRangeView(final HTMLDivElement startValueContainer,
                                       final HTMLDivElement endValueContainer,
                                       final HTMLInputElement includeStartValue,
                                       final HTMLInputElement includeEndValue,
                                       final TypedValueComponentSelector startValueComponentSelector,
                                       final TypedValueComponentSelector endValueComponentSelector); @Override void init(final DataTypeConstraintRange presenter); @Override String getStartValue(); @Override String getEndValue(); @Override void setStartValue(final String value); @Override void setEndValue(final String value); @Override boolean getIncludeStartValue(); @Override void setIncludeStartValue(boolean includeStartValue); @Override boolean getIncludeEndValue(); @Override void setIncludeEndValue(boolean includeEndValue); @Override void setPlaceholders(final String placeholder); @Override void setComponentSelector(final String type);  }### Answer:
@Test public void testGetEndValue() { final String expected = "someString"; when(endValueComponent.getValue()).thenReturn(expected); final String actual = view.getEndValue(); assertEquals(expected, actual); }