### Question:
JdkLogger extends AbstractInternalLogger { public boolean isInfoEnabled() { return logger.isLoggable(Level.INFO); } JdkLogger(Logger logger, String loggerName); 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 testIsInfoEnabled() { Logger mock = createStrictMock(Logger.class); expect(mock.isLoggable(Level.INFO)).andReturn(true); replay(mock); InternalLogger logger = new JdkLogger(mock, "foo"); assertTrue(logger.isInfoEnabled()); verify(mock); }