void () { createDirectory(root, "dir"); createFile(root, "dir/file", "content"); rename(root, "dir/file", "new file"); assertFalse(root.hasEntry("dir/file")); assertTrue(root.hasEntry("dir/new file")); assertContent("content", root.getEntry("dir/new file").getContent()); }