@Test
public void testNumberConversion_valid() throws Exception {

    XmlToJson<Node> converter = converter("ext", "{\"type\": \"number\"}");
    Node xml = xml("<config><ext>1.2</ext></config>");
    ModelNode config = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(config);
    Assert.assertEquals(ModelType.DOUBLE, config.getType());
    Assert.assertEquals(1.2d, config.asDouble(), 0);
}