underTest = new DefaultManagedSlotMappingConfiguration(resolverProvider,
slotMappingInitializer, visualizationModel, errorModel);
ManagedSlotMapping slotMapping = underTest
.getManagedSlotMapping(slots[0]);
SlotMappingChangedHandler uiModelHandler = mock(SlotMappingChangedHandler.class);
slotMapping.addSlotMappingEventHandler(uiModelHandler);
SlotMappingChangedHandler handler = captureSlotMappingChangedHandler();
SlotMappingChangedEvent event = new SlotMappingChangedEvent(slots[0],
resolver1, resolver2);
handler.onSlotMappingChanged(event);
SlotMappingChangedEvent resultingEvent = captureSlotMappingChangedEvent(uiModelHandler);
assertEquals(resultingEvent.getCurrentResolver(), resolver2);
assertEquals(resultingEvent.getSlot(), slots[0]);
}