@Test
  public void propertiesFactoryTest() throws IOException {
    TestObject value = ImmutableTestObject.copyOf(createTestObject())
            // excluding map here because when it is de-serialized, the order is changed and the unit test fails
            .withMapOfStringToString(new HashMap<String, String>());
    JavaPropsFactory factory = new JavaPropsFactory();
    Class<TestObject> clazz = TestObject.class;
    ByteArrayOutputStream outputStream = testWriting(value, factory, clazz);
    TestObject value2 = testXmlReading(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