title: How do you access protected Java method in thirdparty library?
body: <p>Assume that you must access a protected method of a Java object that you receive somewhere in your code. What is your solution?</p>
  
  <p>I know one approach: You can employ reflection and call setAccessible(true) on the Method object. </p>
  
  <p>Any other idea?</p>