@Test
public void testInfoWithException() {

    Logger mockLogger = mock(Logger.class);
    when(mockLogger.getName()).thenReturn("foo");
    InternalLogger logger = new Slf4JLogger(mockLogger);
    logger.info("a", e);
    verify(mockLogger).getName();
    verify(mockLogger).info("a", e);
}