private TestObject testReading(JsonFactory factory, Class<TestObject> clazz, ByteArrayOutputStream outputStream) throws IOException {
    JsonParser r = factory.createParser(outputStream.toByteArray());
    JsonParserReader parserReader = new JsonParserReader(r);
    return gson.fromJson(parserReader, clazz);
  }
Test the various Jackson serialization formats against the Gson/Jackson bridge.
gson/test/org/immutables/gson/bridge/GsonJacksonBridgeSerializationTest.java