title: JMock strange try/catch clause
body: <p>I am trying to write up a few tests using JMock and the following code will be added:</p>
  
  <pre><code>db = context.mock(DBResultQueryExecutor.class);
  context.checking(new Expectations() {{
       oneOf (db).prepareQuery(query);
       will(throwException(new QueryException("Test")));
  }});
  </code></pre>
  
  <p>Now, my <code>DBResultQueryExecutor</code> is defined as follows:</p>
  
  <pre><code>public interface DBResultQueryExecutor{
  ...
  void executeQuery() throws QueryException; //This is a checked exception
  ... }
  </code></pre>
  
  <p>In JMock I am simply trying to specify that the method will be called at some point in the future exactly once. That is fine except for the fact that Eclipse is complaining about the unhandled exception WITHIN the expectation setup. I know it will be thrown later on and I have no business checkingit within the expectation.</p>
  
  <p>Am I doing something terribly wrong here or is there a simple remedy for this situation? Thanks.</p>