@Test
  public void jsonFactoryTest() throws IOException {
    TestObject value = createTestObject();
    JsonFactory factory = new JsonFactory();
    Class<TestObject> clazz = TestObject.class;
    ByteArrayOutputStream outputStream = testWriting(value, factory, clazz);
    TestObject value2 = testReading(factory, clazz, outputStream);
    Assert.assertEquals(value2.toString(), value.toString());
  }
Test the various Jackson serialization formats against the Gson/Jackson bridge.
gson/test/org/immutables/gson/bridge/GsonJacksonBridgeSerializationTest.java