### Question:
JulBridgeLogger { public boolean isLoggable(Level level) { if (level == SEVERE) { return logger.isErrorEnabled(); } else if (level == WARNING) { return logger.isWarnEnabled(); } else if (level == INFO) { return logger.isInfoEnabled(); } else if (level == CONFIG) { return logger.isInfoEnabled(); } else if (level == FINE) { return logger.isDebugEnabled(); } else if (level == FINER) { return logger.isDebugEnabled(); } else if (level == FINEST) { return logger.isTraceEnabled(); } else { return false; } } JulBridgeLogger(Logger logger); static JulBridgeLogger getGlobal(); static JulBridgeLogger getLogger(String name); static JulBridgeLogger getLogger(String name, String resourceBundleName); static JulBridgeLogger getAnonymousLogger(); static JulBridgeLogger getAnonymousLogger(String resourceBundleName); String getName(); void severe(String msg); void warning(String msg); void info(String msg); void config(String msg); void fine(String msg); void finer(String msg); void finest(String msg); void log(Level level, String msg); void log(Level level, String msg, Throwable thrown); Level getLevel(); void setLevel(Level newLevel); boolean isLoggable(Level level); void log(LogRecord record); void log(Level level, String msg, Object param1); void log(Level level, String msg, Object params[]); void logp(Level level, String sourceClass, String sourceMethod, String msg); void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1); void logp(Level level, String sourceClass, String sourceMethod, String msg, Object params[]); void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown); void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg); void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1); void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object params[]); void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params); void logrb(Level level, ResourceBundle bundle, String msg, Object... params); void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown); void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown); void logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown); void entering(String sourceClass, String sourceMethod); void entering(String sourceClass, String sourceMethod, Object param1); void entering(String sourceClass, String sourceMethod, Object params[]); void exiting(String sourceClass, String sourceMethod); void exiting(String sourceClass, String sourceMethod, Object result); void throwing(String sourceClass, String sourceMethod, Throwable thrown); ResourceBundle getResourceBundle(); void setResourceBundle(ResourceBundle bundle); String getResourceBundleName(); Filter getFilter(); void setFilter(Filter newFilter); void addHandler(Handler handler); void removeHandler(Handler handler); Handler[] getHandlers(); boolean getUseParentHandlers(); void setUseParentHandlers(boolean useParentHandlers); JulBridgeLogger getParent(); void setParent(JulBridgeLogger parent); static final String GLOBAL_LOGGER_NAME; static final JulBridgeLogger global; }### Answer:
@Test void testIsLoggable() { final JulBridgeLogger logger = JulBridgeLogger.getLogger(getClass().getName()); assertThat(logger.isLoggable(SEVERE)).isTrue(); assertThat(logger.isLoggable(WARNING)).isTrue(); assertThat(logger.isLoggable(INFO)).isTrue(); assertThat(logger.isLoggable(CONFIG)).isTrue(); assertThat(logger.isLoggable(FINE)).isTrue(); assertThat(logger.isLoggable(FINER)).isTrue(); assertThat(logger.isLoggable(FINEST)).isFalse(); assertThat(logger.getLevel()).isSameAs(FINE); }