@@ -0,0 +1,1629 @@
+package com.bugsnag.android;%0A%0Aimport java.io.IOException;%0Aimport java.io.StringWriter;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Apublic class JsonStreamTest extends BugsnagTestCase %7B%0A    public void testSaneValues() throws JSONException, IOException %7B%0A        StringWriter writer = new StringWriter();%0A        JsonStream stream = new JsonStream(writer);%0A%0A        Long nullLong = null;%0A        Boolean nullBoolean = null;%0A        String nullString = null;%0A        Integer nullInteger = null;%0A        Float nullFloat = null;%0A        Double nullDouble = null;%0A%0A        stream.beginObject();%0A        stream.name(%22nullLong%22).value(nullLong);%0A        stream.name(%22nullBoolean%22).value(nullBoolean);%0A        stream.name(%22nullString%22).value(nullString);%0A        stream.name(%22nullInteger%22).value(nullInteger);%0A        stream.name(%22nullFloat%22).value(nullFloat);%0A        stream.name(%22nullDouble%22).value(nullDouble);%0A        stream.name(%22string%22).value(%22string%22);%0A        stream.name(%22int%22).value(123);%0A        stream.name(%22long%22).value(123l);%0A        stream.name(%22float%22).value(123.45f);%0A        stream.endObject();%0A%0A        JSONObject json = new JSONObject(writer.toString());%0A        assertTrue(json.isNull(%22nullLong%22));%0A        assertTrue(json.isNull(%22nullBoolean%22));%0A        assertTrue(json.isNull(%22nullString%22));%0A        assertTrue(json.isNull(%22nullInteger%22));%0A        assertTrue(json.isNull(%22nullFloat%22));%0A        assertTrue(json.isNull(%22nullDouble%22));%0A        assertEquals(%22string%22, json.getString(%22string%22));%0A        assertEquals(123, json.getInt(%22int%22));%0A        assertEquals(123l, json.getLong(%22long%22));%0A    %7D%0A%7D%0A

Add more serialization tests