### Question:
Slf4JLogger extends AbstractInternalLogger { public void debug(String msg) { logger.debug(msg); } Slf4JLogger(Logger logger); void debug(String msg); void debug(String msg, Throwable cause); void error(String msg); void error(String msg, Throwable cause); void info(String msg); void info(String msg, Throwable cause); boolean isDebugEnabled(); boolean isErrorEnabled(); boolean isInfoEnabled(); boolean isWarnEnabled(); void warn(String msg); void warn(String msg, Throwable cause); @Override String toString();  }### Answer:
@Test public void testDebug() { Logger mock = createStrictMock(Logger.class); mock.debug("a"); replay(mock); InternalLogger logger = new Slf4JLogger(mock); logger.debug("a"); verify(mock); }
@Test public void testDebugWithException() { Logger mock = createStrictMock(Logger.class); mock.debug("a", e); replay(mock); InternalLogger logger = new Slf4JLogger(mock); logger.debug("a", e); verify(mock); }