private void assertException(Class<? extends Throwable> exceptionType, int index) {
        LogRecord logRecord = listHandler.recordList.get(index);
        Assert.assertNotNull(logRecord);
        assertEquals(exceptionType, logRecord.getThrown().getClass());
    }
Test whether invoking the SLF4J API causes problems or not.

@author Ceki Gulcu
slf4j-jdk14/src/test/java/org/slf4j/jul/InvocationTest.java