System.out.println("Default status");
System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, CONFIG1);
System.setProperty(Constants.LOG4J_DEFAULT_STATUS_LEVEL, "DEBUG");
try {
final LoggerContext ctx = (LoggerContext) LogManager.getContext();
ctx.reconfigure();
final Configuration config = ctx.getConfiguration();
assertTrue("Configuration is not an XMLConfiguration", config instanceof XMLConfiguration);
} finally {
System.clearProperty(Constants.LOG4J_DEFAULT_STATUS_LEVEL);
}