void () { FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint() .registerExtension(new MyTextEditorProvider("one", 1), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint() .registerExtension(new MyTextEditorProvider("two", 2), myFixture.getTestRootDisposable()); Project project = getProject(); VirtualFile file = getFile("/src/Test.java"); manager.openTextEditor(new OpenFileDescriptor(project, file, 1), true); assertEquals("one", manager.getSelectedEditor(file).getName()); manager.openTextEditor(new OpenFileDescriptor(project, file, 2), true); assertEquals("two", manager.getSelectedEditor(file).getName()); }