public void testAddEventListenerRegistration()
{
EventListenerRegistrationData<ConfigurationEvent> reg =
new EventListenerRegistrationData<ConfigurationEvent>(
ConfigurationEvent.SET_PROPERTY,
new EventListenerTestImpl(null));
EventListenerParameters parameters = new EventListenerParameters();
assertSame("Wrong result", parameters, parameters.addEventListener(reg));
assertEquals("Wrong number of registrations", 1, parameters
.getListeners().getRegistrations().size());
assertEquals("Wrong registration", reg, parameters.getListeners()