JSONPrinter { public <K> void printSchemaMap(Map<K, Schema> input) { object(); input.entrySet().forEach(entry -> { key(entry.getKey().toString()); entry.getValue().describeTo(this); }); endObject(); } JSONPrinter(Writer writer);  JSONPrinter(org.json.JSONWriter writer);  JSONPrinter(JSONWriter writer); JSONPrinter key(final String key); JSONPrinter value(final Object value); JSONPrinter object(); JSONPrinter endObject(); JSONPrinter ifPresent(final String key, final Object value); JSONPrinter ifTrue(final String key, final Boolean value); JSONPrinter array(); JSONPrinter endArray(); void ifFalse(String key, Boolean value); void printSchemaMap(Map<K, Schema> input);  }
@Test public void printSchemaMap() { HashMap<Number, Schema> input = new HashMap<Number, Schema>(); input.put(2, NullSchema.INSTANCE); subject().printSchemaMap(input); assertEquals("{\"2\":" + NullSchema.INSTANCE.toString() + "}", buffer.toString()); }