@Test
public void testObjectConversion_additionalProperties() throws Exception {

    XmlToJson<Node> converter = converter("ext", "{\"type\": \"object\", " +
            "\"properties\": {\"a\": {\"type\": \"integer\"}, \"b\": {\"type\": \"boolean\"}}, " +
                    "\"additionalProperties\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}}}");
    Node xml = xml("<config><ext><a>4</a><b>true</b><c/><d><x>x</x></d></ext></config>");
    ModelNode config = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(config);
    Assert.assertEquals(ModelType.OBJECT, config.getType());
    Assert.assertEquals(4L, config.get("a").asLong());
    Assert.assertEquals(true, config.get("b").asBoolean());
    Assert.assertEquals(Collections.emptyList(), config.get("c").asList());
    Assert.assertEquals(1, config.get("d").asList().size());
    Assert.assertEquals("x", config.get("d").get(0).asString());
}