### Question:
SyntaxConverter extends AbstractConverter<Syntax> { @Override protected String convertToString(Syntax value) { return value == null ? null : value.toIdString(); }    }### Answer:
@Test public void convertToString() throws Exception { String syntaxId = this.mocker.getComponentUnderTest().convert(String.class, Syntax.XWIKI_2_1); Assert.assertEquals(Syntax.XWIKI_2_1.toIdString(), syntaxId); }