@Test
public void testStringConversion_escapes() throws Exception {

    ModelNode schema = json("{\"type\": \"string\"}");
    ModelNode json = json("\"&<>\"");
    PlexusConfiguration config = SchemaDrivenJSONToXmlConverter.convert(json, schema, "tag", null);
    assertNotNull(config);
    assertEquals("tag", config.getName());
    assertEquals(0, config.getChildCount());
    assertEquals("&<>", config.getValue());
    StringWriter wrt = new StringWriter();
    XmlUtil.toIndentedString(config, 0, 0, wrt);
    assertEquals("<tag>&amp;&lt;&gt;</tag>", wrt.toString());
}