title: JMock, What should you do when the mock object gets casted to a concrete class?
body: <p>Not sure how I should be asking the question, but when I define my mock objects, and somewhere in the code it attempts to cast it to a different type the test throws me </p>
  
  <pre><code>$Proxy6 cannot be cast to ...
  </code></pre>
  
  <p>How does one solve this problem?</p>