@Test
public void testArrayConversion_commentsAndWhitespaceIgnored() throws Exception {

    XmlToJson<Node> converter = converter("list", "{\"type\": \"array\", \"items\": {\"type\": \"integer\"}}");
    Node xml = xml("<config><list>\n\n   <!-- just whitespace -->\n\t   </list></config>");
    ModelNode config = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(config);
    Assert.assertEquals(ModelType.LIST, config.getType());
    Assert.assertTrue(config.asList().isEmpty());
}