BigDecimalTypeConverter extends StringBasedTypeConverter<BigDecimal> { @Override public BigDecimal getFromString(String string) { return new BigDecimal(string); }  @Override BigDecimal getFromString(String string); @Override String convertToString(BigDecimal bigDecimal);  }
@Test public void shouldCreateBigDecimalFromString() { String stringRepresentation = "123.45"; BigDecimal bigDecimal = converter.getFromString(stringRepresentation); assertThat(bigDecimal.unscaledValue()).isEqualTo(BigInteger.valueOf(12345)); assertThat(bigDecimal.scale()).isEqualTo(2); }