MultiFileConfigurationBuilder<XMLConfiguration> builder =
createTestBuilder(null);
builder.addEventListener(ConfigurationBuilderEvent.ANY, listener);
switchToConfig(1);
builder.getConfiguration();
ConfigurationBuilderEvent event =
listener.nextEvent(ConfigurationBuilderEvent.CONFIGURATION_REQUEST);
assertEquals("Wrong event source of request event", builder,
event.getSource());
ConfigurationBuilderResultCreatedEvent createdEvent =
listener.nextEvent(ConfigurationBuilderResultCreatedEvent.RESULT_CREATED);
assertEquals("Wrong source of creation event", builder,
createdEvent.getSource());
listener.assertNoMoreEvents();