SchemaLoader { static JSONObject toOrgJSONObject(JsonObject value) { return new JSONObject(value.toMap()); } SchemaLoader(SchemaLoaderBuilder builder);   SchemaLoader(LoadingState ls); static SchemaLoaderBuilder builder(); static Schema load(final JSONObject schemaJson); static Schema load(final JSONObject schemaJson, final SchemaClient schemaClient); Schema.Builder<?> load();  }
@Test public void toOrgJSONObject() { JSONObject orig = new JSONObject("{\"a\":{\"b\":1}}"); JSONObject actual = SchemaLoader.toOrgJSONObject((JsonObject) JsonValue.of(orig)); assertEquals(orig.toString(), actual.toString()); }