### Question:
WikiBootstrapServletContextListener implements ServletContextListener { boolean initWikiLoggingFramework( final Properties properties ) { final String useExternalLogConfig = TextUtil.getStringProperty( properties,"jspwiki.use.external.logconfig","false" ); if( useExternalLogConfig.equals( "false" ) ) { if( ClassUtil.exists( "org.apache.log4j.Logger" ) ) { PropertyConfigurator.configure( properties ); } } return useExternalLogConfig.equals( "false" ); }  @Override void contextInitialized( final ServletContextEvent sce ); @Override void contextDestroyed( final ServletContextEvent sce );  }### Answer:
@Test public void testLoggingFrameworkInit() { final WikiBootstrapServletContextListener listener = new WikiBootstrapServletContextListener(); final Properties properties = new Properties(); Assertions.assertTrue( listener.initWikiLoggingFramework( properties ) ); properties.setProperty( "jspwiki.use.external.logconfig", "true" ); Assertions.assertFalse( listener.initWikiLoggingFramework( properties ) ); }