source: class SchemaDrivenJSONToXmlConverterTest {
  
      @Test
      public void testIdUsed() throws Exception {
  
target:         ModelNode schema = json("{\"type\": \"boolean\"}");
          ModelNode json = json("true");
  
          PlexusConfiguration config = SchemaDrivenJSONToXmlConverter.convert(json, schema, "tag", "id");
          assertNotNull(config);
          assertEquals("tag", config.getName());
          assertEquals("id", config.getAttribute("id"));
          assertEquals(0, config.getChildCount());
          assertEquals("true", config.getValue());
      }
  
  }