@Test
public void testIsErrorEnabled() {

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