### Question:
DoubleField extends AbstractNumberField<DoubleField, Double> { @Override protected void userInputToValue(String str) { if (StringUtils.isNotBlank(str)) { str = str.replaceAll(",", "."); value = Double.parseDouble(str); } else { value = null; } } DoubleField();  DoubleField(String caption); @Override DoubleField withBlurListener(FieldEvents.BlurListener listener); @Override DoubleField withFocusListener(FieldEvents.FocusListener listener); DoubleField withStep(Double step); @Override Double getValue();  }### Answer:
@Test public void testUserInputToValue() { fieldUnderTest.userInputToValue("2.0"); assertThat(fieldUnderTest.getValue(), is(2.0)); }