Bootstrap { @VisibleForTesting static void loadLogging(final boolean debug) { Path logbackFilePath = get(HOLMES_HOME.getValue(), HOLMES_HOME_CONF_DIRECTORY.toString(), debug ? "logback-debug.xml" : "logback.xml"); if (exists(logbackFilePath)) { try { LoggerContext context = (LoggerContext) getILoggerFactory(); context.reset(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(context); configurator.doConfigure(logbackFilePath.toFile()); SLF4JBridgeHandler.removeHandlersForRootLogger(); SLF4JBridgeHandler.install(); } catch (JoranException e) { throw new HolmesRuntimeException(e); } } else { throw new HolmesRuntimeException(logbackFilePath + " does not exist. Check " + HOLMES_HOME.getName() + " [" + HOLMES_HOME.getValue() + "] system property"); } } private  Bootstrap(); static void main(final String... args);  }
@Test public void testLoadLogging() { loadLogging(false); }
@Test public void testLoadDebugLogging() { loadLogging(true); }