title: How to fill large stubbed pojo with test and actual values?
body: <p>While writing junits for a analytics calculator I realised that in order to test a simple functionality I have manually create stubbed pojo's with test values, which is taking more time for writing actual business logic ?
  For example if I want to check a function which calculates sum <code>( person.age ) / count (person)</code>
  Now while writing the java junits I mocked the service which returns a collection of person objects and then manually created 3 person objects each having some age . </p>
  
  <p>Now if the person class is huge say <strong>30-40 fields</strong> . is there an easy way to create such objects ? Like pull data from db and create objects on the fly by parsing a CSV file taken from db ? </p>
  
  <p>I want to know what are the recommended ways to do it ? </p>