title: JUnit tests for POJOs
body: <p>I work on a project where we have to create unit tests for all of our simple beans (POJOs).  Is there any point to creating a unit test for POJOs if all they consist of is getters and setters?  Is it a safe assumption to assume POJOs will work about 100% of the time?</p>
  
  <hr>
  
  <p>Duplicate of - <a href="https://stackoverflow.com/questions/337241/should-entity-pojos-be-tested">Should @Entity Pojos be tested?</a> </p>
  
  <p><strong>See also</strong> </p>
  
  <p><a href="https://stackoverflow.com/questions/607620/is-it-bad-practice-to-run-tests-on-a-db-instead-of-on-fake-repositories/616537#616537">Is it bad practice to run tests on a DB instead of on fake repositories?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/108692/is-there-a-java-unit-test-framework-that-auto-tests-getters-and-setters">Is there a Java unit-test framework that auto-tests getters and setters?</a></p>