title: How to test protected methods of abstract class using JUnit and JMock
body: <p>I have such situation - I have interface (say <code>MyInterface</code>) and simple partial implementation (<code>AbstractMyInterface</code>). The latter adds a few protected methods which I would like to test.</p>
  
  <p>Currently I simply write by hand a mock object which extends <code>AbstractMyInterface</code> and export protected methods as public. Is there a simpler way of doing this - for example using JMock+scripting?</p>