void () { String firstClassName = "Class1"; String secondClassName = "Class223467234678234678236478263478"; createClass(firstClassName); renameClassTo(secondClassName); assertFileExists(myRoot, secondClassName); assertFileDoesNotExist(firstClassName, myRoot); for (int i = 0; i < 2; i++) { globalUndo(); assertFileExists(myRoot, firstClassName); assertFileDoesNotExist(secondClassName, myRoot); globalRedo(); assertFileExists(myRoot, secondClassName); assertFileDoesNotExist(firstClassName, myRoot); } }