}
public void testSetMap() {
Map<String, TransitionProcessor> transitionProcessors = new HashMap<String, TransitionProcessor>();
TransitionProcessor transitionProcessor1 = createMock(TransitionProcessor.class);
transitionProcessors.put("LOADED_TO_UNLOADED", transitionProcessor1);
TransitionProcessor transitionProcessor2 = createMock(TransitionProcessor.class);
transitionProcessors.put("UNLOADED_TO_LOADED", transitionProcessor2);
registry.setTransitionProcessors(transitionProcessors);
assertSame(transitionProcessor1, registry.getTransitionProcessor(Transition.LOADED_TO_UNLOADED));
assertSame(transitionProcessor2, registry.getTransitionProcessor(Transition.UNLOADED_TO_LOADED));