title: MissingMethodInvocationException when mocking a org.apache.log4j.Level class
body: <p>The following code results in org.mockito.exceptions.misusing.MissingMethodInvocationException:</p>
  
  <pre><code>Level level = mock(Level.class);
  IOException ioException = new IOException("test");
  when(level.getSyslogEquivalent()).thenThrow(ioException);
  </code></pre>