@Test public void testIsInfoEnabled() { org.apache.log4j.Logger mock = createStrictMock(org.apache.log4j.Logger.class); expect(mock.isInfoEnabled()).andReturn(true); replay(mock); InternalLogger logger = new Log4JLogger(mock); assertTrue(logger.isInfoEnabled()); verify(mock); }