ModuleDefinitionSource moduleDefinitionSource = EasyMock.createMock(ModuleDefinitionSource.class);
expect(moduleDefinitionSource.getModuleDefinition()).andReturn(originalDefinition);
SimpleRootModuleDefinition definition = new SimpleRootModuleDefinition("root", "config");
definition.freeze();
TransitionSet set = new TransitionSet(new ArrayList<ModuleStateChange>(), definition);
expect(moduleStateHolder.cloneRootModuleDefinition()).andReturn(definition);
expect(repairModificationExtractor.getTransitions(application, isA(RootModuleDefinition.class), isA(RootModuleDefinition.class))).andReturn(set);