void () { openFiles(STRING.replace("pinned=\"true\"", "pinned=\"false\"")); assertOpenFiles("1.txt", "foo.xml", "2.txt", "3.txt"); manager.closeAllFiles(); openFiles(STRING); assertOpenFiles("foo.xml", "1.txt", "2.txt", "3.txt"); }