@Test
public void testErrorWithException() {

    Log mockLog = mock(Log.class);
    InternalLogger logger = new CommonsLogger(mockLog, "foo");
    logger.error("a", e);
    verify(mockLog).error("a", e);
}