### Question:
BigDecimalToStringConverterFactory implements TypeConverterFactory<BigDecimal, String> { @Override public TypeConverter<BigDecimal, String> createTypeConverter() { return new NumberToStringConverter<>(); }  @Override TypeConverter<BigDecimal, String> createTypeConverter(); @Override TypeConverterDescriptor<Class<BigDecimal>, Class<String>> getTypeConverterDescriptor();  }### Answer:
@Test public void test_encode_format_config() { BigDecimalToStringConverterFactory bigDecimalToStringConverterFactory = new BigDecimalToStringConverterFactory(); Properties config = new Properties(); config.setProperty(NumberTypeConverter.FORMAT, "#,###.##"); TypeConverter<BigDecimal, String> typeConverter = bigDecimalToStringConverterFactory.createTypeConverter(); ((Configurable) typeConverter).setConfiguration(config); assertEquals("1,234.45", typeConverter.convert(new BigDecimal("1234.45"))); }
@Test public void test_encode_locale_config() { BigDecimalToStringConverterFactory bigDecimalToStringConverterFactory = new BigDecimalToStringConverterFactory(); Properties config = new Properties(); config.setProperty(NumberTypeConverter.LOCALE, "de-DE"); TypeConverter<BigDecimal, String> typeConverter = bigDecimalToStringConverterFactory.createTypeConverter(); ((Configurable) typeConverter).setConfiguration(config); assertEquals("1234,45", typeConverter.convert(new BigDecimal("1234.45"))); }