void () { Module module = addModule("oldName"); ModulePointer pointer = getPointerManager().create(module); assertEquals("oldName", pointer.getModuleName()); ModulePointer newPointer = getPointerManager().create("newName"); ((ModulePointerManagerImpl)getPointerManager()).setRenamingScheme(Maps.newHashMap("oldName", "newName")); deleteModule(module); Module newModule = addModule("newName"); assertEquals("newName", pointer.getModuleName()); assertSame(newModule, pointer.getModule()); assertEquals("newName", newPointer.getModuleName()); assertSame(newModule, newPointer.getModule()); }