}
public void shouldUseOutputStream() throws IOException {
JsonObject object = object(field("hi", "wrld"));
ByteArrayOutputStream bos = new ByteArrayOutputStream();
object.serialize(bos);
byte[] string = bos.toByteArray();
assertThat(string.length, Matchers.greaterThan(0));
assertThat(jsonParser.parse(bos.toString()), is(object));
}