@Test
public void testObjectConversion_with$refs() throws Exception {

    XmlToJson<Node> converter = converter("ext", "{\"type\": \"object\", \"properties\": {\"a\": {\"$ref\": \"#/definitions/a\"}}, " +
            "\"definitions\": {\"a\": {\"type\": \"boolean\"}}}");
    Node xml = xml("<config><ext><a>true</a></ext></config>");
    ModelNode config = converter.convert(xml).get(0).get("configuration");
    Assert.assertNotNull(config);
    Assert.assertEquals(ModelType.OBJECT, config.getType());
    Assert.assertEquals(true, config.get("a").asBoolean());
}