### Question:
ContextInitializer { public void autoConfig() throws JoranException { StatusListenerConfigHelper.installIfAsked(loggerContext); new AndroidContextUtil().setupProperties(loggerContext); boolean verbose = true; boolean configured = false; JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(loggerContext); if (!configured) { URL url = findConfigFileFromSystemProperties(verbose); if (url != null) { configurator.doConfigure(url); configured = true; } } if (!configured) { URL assetsConfigUrl = findConfigFileURLFromAssets(verbose); if (assetsConfigUrl != null) { configurator.doConfigure(assetsConfigUrl); configured = true; } } } ContextInitializer(LoggerContext loggerContext); void autoConfig(); final static String AUTOCONFIG_FILE; final static String CONFIG_FILE_PROPERTY; }### Answer:
@SuppressWarnings("deprecation") @Test @Ignore public void reset() throws JoranException { { new ContextInitializer(loggerContext).autoConfig(); Appender<ILoggingEvent> appender = root.getAppender("STDOUT"); assertNotNull(appender); assertTrue(appender instanceof ConsoleAppender); } { loggerContext.stop(); Appender<ILoggingEvent> appender = root.getAppender("STDOUT"); assertNull(appender); } }