@Test
public void testIsWarnEnabled() {

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