added round trip tests.
added jackson test for custom encoding.