@Test
public void testObjectConversion() throws Exception {

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