void () { String moduleName = "module"; String newModuleName = "moduleA"; Module module = createModule(moduleName); assertEquals(moduleName, module.getName()); MapDataContext context = new MapDataContext(); context.put(LangDataKeys.MODULE_CONTEXT, module); final RenameHandler renameHandler = RenameHandlerRegistry.getInstance().getRenameHandler(context); assertNotNull(renameHandler); rename(renameHandler, newModuleName, context); assertEquals(newModuleName, module.getName()); }