@Test
public void testWarn() {

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