public void testPlainTextSubstitution() throws IOException { FileTypeManagerEx.getInstanceEx().registerFileType(MockLanguageFileType.INSTANCE, "xxx"); try { configureFromFileText("a.xxx", "aaa a<caret>"); complete(); checkResultByText("aaa aaa<caret>"); } finally { FileTypeManagerEx.getInstanceEx().unregisterFileType(MockLanguageFileType.INSTANCE); } }