### Question:
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); } FormattedDecimalFieldToStringConverter(String format); @Override Result<Decimal> convertToModel(@CheckForNull String value, ValueContext context); @Override String convertToPresentation(@CheckForNull Decimal value, ValueContext context);  }### Answer:
@Test public void testConvertToModelWithoutSeparators() { assertThat(converter.convertToModel("17385,89", new ValueContext(Locale.GERMAN)) .getOrThrow(s -> new AssertionError(s)), is(Decimal.valueOf(17385.89))); }
@Test public void testConvertToModelWithNull() { assertThat(converter.convertToModel(null, new ValueContext()) .getOrThrow(s -> new AssertionError(s)), is(Decimal.NULL)); }