ContentBuilder.generate(out, new JdkValueWriter(true)).value(obj).flush().close();
assertEquals(message, out.bytes().toString());
}
private String jdkTypeToJson(Object obj) {
ContentBuilder.generate(out, new JdkValueWriter(false)).value(obj).flush().close();
return out.bytes().toString();
}