    @Test
    public void testDebugWithException() {

        Logger mock =
            createStrictMock(Logger.class);

        mock.debug("a", e);
        replay(mock);

        InternalLogger logger = new Log4JLogger(mock);
        logger.debug("a", e);
        verify(mock);
    }