Currently, testing the automated serialization from JSON to ATOM/XML is labor intensive and involves manually parsing XML. I think it would be easier to include test fixtures, local text files, which express a given server response in JSON, XML, and ATOM serializations. The unit tests can then compare against these local files to ensure the automated serialization matches the expected serialization in the test file.
A benefit to this approach (besides making it easier to test) is that the serialization in the text file can be clearly shown to third parties to reach consensus on the serialization format, whereas the XML parsing logic is more difficult to convey ;) What do you guys think? - Eric W.
