title: How to generate junit tests given an XSD
body: <p>Currently our XSD schema changes quite a bit and we want to it to create junit tests that will break whenever an existing data type gets re-defined. </p>
  
  <p>For example, if there was a field <code>"YearBuilt"</code> defined as a <code>"Integer"</code> originally and someone comes along and changes this to be a <code>"String"</code>, we want this <code>jUnit</code> test to fail.</p>
  
  <p>Is there any utilities or programs which will take in an existing schema and generate the appropriate unit tests for all the datatypes? We currently generate <code>jaxb</code> objects. Is there some program which can generate <code>junits</code> for a set of <code>jaxb</code> objects? </p>