@Test
public void testArrayConversion() throws Exception {

    ModelNode schema = json("{\"type\": \"array\", \"items\": {\"type\": \"integer\"}}");
    ModelNode json = json("[1,2,3]");
    PlexusConfiguration config = SchemaDrivenJSONToXmlConverter.convert(json, schema, "tag", null);
    assertNotNull(config);
    assertEquals("tag", config.getName());
    assertNull(config.getValue());
    assertEquals(3, config.getChildCount());
    assertEquals("item", config.getChild(0).getName());
    assertEquals("1", config.getChild(0).getValue());
    assertEquals("item", config.getChild(1).getName());
    assertEquals("2", config.getChild(1).getValue());
    assertEquals("item", config.getChild(2).getName());
    assertEquals("3", config.getChild(2).getValue());
}