public void test_WriteEmptyObjectClose() {
Exception ex = null;
try{
StringWriter w = new StringWriter();
JSONWriter jWriter = new JSONWriter(w);
jWriter.object();
jWriter.close();
String str = w.toString();
// Verify it parses.
JSONObject test = new JSONObject(str);
assertTrue(str.equals("{}"));