void () { init(""" abc abc abc"""); initFind(); setTextToFind("b"); addOccurrence(); setTextToFind("bc"); assertEquals(1, myFixture.getEditor().getCaretModel().getCaretCount()); assertEquals("bc", myFixture.getEditor().getSelectionModel().getSelectedText()); }