void () { configureByText(FileTypes.PLAIN_TEXT, "something\telse"); FindModel model = new FindModel(); model.setStringToFind("m"); model.setStringToReplace("M"); model.setPromptOnReplace(false); FindUtil.replace(myProject, myEditor, 0, model); assertEquals("soMething\telse", myEditor.getDocument().getText()); }