void () { BookmarkManager manager = new BookmarkManager(getProject()); manager.applyNewStateInTestMode(Collections.emptyList()); assertThat(manager.getState()).isEqualTo("<BookmarkManager />"); String text = "point me"; init(text, TestFileType.TEXT); Bookmark bookmark = new Bookmark(getFile().getVirtualFile().getUrl(), 0, "description?"); bookmark.setMnemonic('3'); manager.applyNewStateInTestMode(Collections.singletonList(bookmark)); assertThat(manager.getState()).isEqualTo("<BookmarkManager>\n" + " <bookmark url=\"temp:///src/LoadState.txt\" description=\"description?\" line=\"0\" mnemonic=\"3\" />\n" + "</BookmarkManager>"); }