ConfigurationErrorListenerImpl l = new ConfigurationErrorListenerImpl();
PropertiesConfiguration config = new PropertiesConfiguration(
RESOURCE_NAME);
config.clearErrorListeners();
config.addErrorListener(l);
config.setReloadingStrategy(new FileAlwaysReloadingStrategy());
config.getString("test");
config.setFileName("Not existing file");
config.getString("test");
l.verify(AbstractFileConfiguration.EVENT_RELOAD, null, null);
assertNotNull("Exception is not set", l.getLastEvent().getCause());