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

    ModelNode schema = json("{\"type\": \"object\", \"properties\": {\"a\": {\"$ref\": \"#/definitions/a\"}}, " +
            "\"definitions\": {\"a\": {\"type\": \"boolean\"}}}");
    ModelNode json = json("{\"a\": true}");
    PlexusConfiguration config = SchemaDrivenJSONToXmlConverter.convert(json, schema, "tag", null);
    assertNotNull(config);
    assertEquals("tag", config.getName());
    assertNull(config.getValue());
    assertEquals(1, config.getChildCount());
    assertEquals("a", config.getChild(0).getName());
    assertEquals("true", config.getChild(0).getValue());
}