### Question:
Slf4jLogger implements Logger { @Override public boolean isDebugEnabled() { return delegate.isDebugEnabled(); } Slf4jLogger( org.slf4j.Logger delegate ); @Override void error( String message, Throwable cause ); @Override void info( String message, Object... params ); @Override void warn( String message, Object... params ); @Override void warn( String message, Throwable cause ); @Override void debug( String message, Object... params ); @Override void trace( String message, Object... params ); @Override boolean isTraceEnabled(); @Override boolean isDebugEnabled();  }### Answer:
@Test void shouldCheckIfDebugIsEnabled() { when( logger.isDebugEnabled() ).thenReturn( false ); assertFalse( slf4jLogger.isDebugEnabled() ); when( logger.isDebugEnabled() ).thenReturn( true ); assertTrue( slf4jLogger.isDebugEnabled() ); }