title: Detect shadowed java bean property
body: <p>Is there an easy way (idealy existing helper library) to detect shadowed attributes of a java bean given it has multiple level of hierarchy?</p>
  
  <p>[C] extends [B] extends [A].
  Then attribute [A].firstName is defined.</p>
  
  <p>I want to detect beans where [C].firstName is redefined (which is likely a developer error) inside a generic jUnit test so this kind of "hard to find bug" is catched by the build process.</p>
  
  <p>Note: in Eclispe IDE this is equivalent to "Field declaration hides another field or variable" under Java/Compiler/Errors/Name shadowing and conflicts.</p>