void () { String origText = "first foo\n<selection>foo</selection> bar baz\nbaz bar foo\nlast foo"; init(origText); initFind(); EditorSearchSession session = getEditorSearchComponent(); FindModel model = session.getFindModel(); assertEquals("foo", model.getStringToFind()); assertTrue(model.isGlobal()); }