config.getString("name");
assertEquals("Wrong number of events", 2, l.events.size());
boolean before = true;
for (Iterator it = l.events.iterator(); it.hasNext();)
{
ConfigurationEvent e = (ConfigurationEvent) it.next();
assertEquals("Wrong configuration", config, e.getSource());
assertEquals("Wrong event type",
HierarchicalConfiguration.EVENT_SUBNODE_CHANGED, e
.getType());
assertNull("Got a property name", e.getPropertyName());
assertNull("Got a property value", e.getPropertyValue());
assertEquals("Wrong before flag", before, e.isBeforeUpdate());
before = !before;
}
}