Generator { Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); }  static void main(String[] args); boolean generate(InputStream schema, Options options, Dialect.Collector output);  }
@Test public void testReparseNormalized() throws IOException { InputStream res = getClass().getResourceAsStream("test-schema.js"); Schema s = new Generator().parseNormalized(res); assertEquals(6, s.getModels().size()); }