Assert.assertEquals("[1,2,3]", writer.toString());
}
public void test_throwable() throws Exception {
JSONWriter writer = new JSONWriter();
writer.writeObject(new Throwable() {
public void printStackTrace(PrintWriter s) {
}
});
Assert.assertEquals("{\"Class\":\"com.alibaba.druid.bvt.utils.JSONWriterTest$1\",\"Message\":null,\"StackTrace\":\"\"}",