void () { final VirtualFile f = createChildData(myRoot, "Foo.txt"); executeCommand(() -> rename(f, "FOO.txt")); assertEquals("FOO.txt", f.getName()); for (int i = 0; i < 2; i++) { globalUndo(); assertEquals("Foo.txt", f.getName()); globalRedo(); assertEquals("FOO.txt", f.getName()); } }