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