@Test
public void testIsDebugEnabled() {

    Logger mockLogger = mock(Logger.class);
    when(mockLogger.getName()).thenReturn("foo");
    when(mockLogger.isDebugEnabled()).thenReturn(true);
    InternalLogger logger = new Slf4JLogger(mockLogger);
    assertTrue(logger.isDebugEnabled());
    verify(mockLogger).getName();
    verify(mockLogger).isDebugEnabled();
}