Logging { static void init(@Nullable final LoggablePlugin plugin) { if (plugin == null) { pluginLogger = PluginLogger.getLogger(DEFAULT_PLUGIN); } else if (pluginLogger.plugin == DEFAULT_PLUGIN) { pluginLogger = PluginLogger.getLogger(plugin); } } private  Logging(); @NotNull static PluginLogger getLogger(); static void setDebugLevel(final int debugLevel); static void log(@NotNull final Level level, @NotNull final String message, @NotNull final Object... args); static void fine(@NotNull final String message, @NotNull final Object...args); static void finer(@NotNull final String message, @NotNull final Object...args); static void finest(@NotNull final String message, @NotNull final Object...args); static void config(@NotNull final String message, @NotNull final Object...args); static void info(@NotNull final String message, @NotNull final Object...args); static void warning(@NotNull final String message, @NotNull final Object...args); static void severe(@NotNull final String message, @NotNull final Object...args);  }
@Test public void testInit() throws Exception { assertNotNull(logging.getDebugLog()); assertEquals(logging.pluginName, plugin.getName()); assertEquals(logging.getDebugLog().debugLevel, DebugLog.ORIGINAL_DEBUG_LEVEL); assertEquals(logging.plugin, plugin); }