FilterStreamTypeConverter extends AbstractConverter<FilterStreamType> { @Override protected String convertToString(FilterStreamType value) { return value == null ? null : value.serialize(); }    }
@Test void convertToString() throws Exception { String typeId = this.converter.convert(String.class, FilterStreamType.XWIKI_XAR_CURRENT); assertEquals(FilterStreamType.XWIKI_XAR_CURRENT.serialize(), typeId); }