void () { String origText = "first foo\nfoo bar baz\nbaz bar foo\nlast foo"; init(origText); initFind(); EditorSearchSession session = getEditorSearchComponent(); FindModel model = session.getFindModel(); session.setTextInField("baz bar"); assertEquals("baz bar", model.getStringToFind()); assertEquals("baz bar", session.getComponent().getSearchTextComponent().getText()); }