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