@Test
public void testIsTraceEnabled() {

    Log mockLog = mock(Log.class);
    when(mockLog.isTraceEnabled()).thenReturn(true);
    InternalLogger logger = new CommonsLogger(mockLog, "foo");
    assertTrue(logger.isTraceEnabled());
    verify(mockLog).isTraceEnabled();
}