### Question:
JBossLogger extends AbstractInternalLogger { @SuppressWarnings("deprecation") public boolean isDebugEnabled() { return logger.isDebugEnabled(); } JBossLogger(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); @SuppressWarnings("deprecation") boolean isDebugEnabled(); boolean isErrorEnabled(); @SuppressWarnings("deprecation") boolean isInfoEnabled(); boolean isWarnEnabled(); void warn(String msg); void warn(String msg, Throwable cause); @Override String toString();  }### Answer:
@Test @SuppressWarnings("deprecation") public void testIsDebugEnabled() { Logger mock = createStrictMock(Logger.class); expect(mock.isDebugEnabled()).andReturn(true); replay(mock); InternalLogger logger = new JBossLogger(mock); assertTrue(logger.isDebugEnabled()); verify(mock); }