title: How can I detect if all JSON fields are being parsed?
body: <p>I am using GSON annotations to parse JSON fields from a restful service into a DTO.  I wanted to write a test which would detect if there where any fields in JSONObject that are not yet being parsed into the Java DTO object that has the annotations.  If on the server they add ten fields I will have no way of knowing this?  Is there any way to test dynamically if all fields are being parsed into the Java object?  </p>
  
  <p>To put this another way, could I get the names of all the DTO fields (including annotation info), and compare that all the fields on the JSON object.  So I am trying to compare DTO to JSONObject to see if I have covered everything.</p>