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