void () { DefaultLogger.disableStderrDumping(getTestRootDisposable()); ExtensionPoint<InternalTemplateBean> point = InternalTemplateBean.EP_NAME.getPoint(); InternalTemplateBean bean = new InternalTemplateBean(); bean.name = "Unknown"; point.registerExtension(bean, new DefaultPluginDescriptor("testInternalTemplatePlugin"), getTestRootDisposable()); try { myTemplateManager.getInternalTemplates(); fail(); } catch (Throwable e) { assertThat(e.getMessage()).isEqualTo("Can't find template Unknown [Plugin: testInternalTemplatePlugin]"); assertThat(((PluginException)e.getCause()).getPluginId().getIdString()).isEqualTo("testInternalTemplatePlugin"); } }