@Test
public void testAllOf() throws Exception {

    XmlToJson<Node> converter = converter("ext", "{\"allOf\": [{\"type\": \"integer\"}, {\"type\": \"number\"}]}");
    Node xml = xml("<config><ext>1</ext></config>");
    ModelNode c = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(c);
    Assert.assertEquals(ModelType.DOUBLE, c.getType());
    Assert.assertEquals(1D, c.asDouble(), 0);
}