@Test
public void testIsTraceEnabled() {

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