@Test
public void testArrayConversion() throws Exception {

    XmlToJson<Node> converter = converter("list", "{\"type\": \"array\", \"items\": {\"type\": \"integer\"}}");
    Node xml = xml("<config><list><item>1</item>\n\n  <item>2</item></list></config>");
    ModelNode config = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(config);
    Assert.assertEquals(ModelType.LIST, config.getType());
    Assert.assertEquals(2, config.asList().size());
    Assert.assertEquals(1L, config.asList().get(0).asLong());
    Assert.assertEquals(2L, config.asList().get(1).asLong());
}