public void testThrowableRenderer() {
Properties props = new Properties();
props.put("log4j.throwableRenderer", "org.apache.log4j.PropertyConfiguratorTest$MockThrowableRenderer");
props.put("log4j.throwableRenderer.showVersion", "false");
PropertyConfigurator.configure(props);
ThrowableRendererSupport repo = (ThrowableRendererSupport) LogManager.getLoggerRepository();
MockThrowableRenderer renderer = (MockThrowableRenderer) repo.getThrowableRenderer();
LogManager.resetConfiguration();
assertNotNull(renderer);
assertEquals(true, renderer.isActivated());
assertEquals(false, renderer.getShowVersion());
}