Slf4jLogging implements Logging { public static RuntimeException checkAvailability() { try { Class.forName( "org.slf4j.LoggerFactory" ); return null; } catch ( Throwable error ) { return new IllegalStateException( "SLF4J logging is not available. Please add dependencies on slf4j-api and SLF4J binding (Logback, Log4j, etc.)", error ); } }  @Override Logger getLog( String name ); static RuntimeException checkAvailability();  }
@Test void shouldCheckIfAvailable() { assertNull( Slf4jLogging.checkAvailability() ); }