以下代码会导致 org.mockito.exceptions.misusing.MissingMethodInvocationException 异常:
Level level = mock(Level.class);
IOException ioException = new IOException("test");
when(level.getSyslogEquivalent()).thenThrow(ioException);