I wrote a method that truns raw data into an object (JSON for all intents and purposes), it has several fields and sub-objects. Now that I want to write tests for it I'm stuck on how to approach it. It seems to me there is no other way than to repeat steps of my method and connect each field from raw data to the corresponding field in my desired object, to verify they are the same. My question is whether this is the correct approach, are there any simpler ideas to utilize?
Thanks in advance!