void () { assertFalse(((FileTemplateBase)myTemplateManager.getTemplate(TEST_TEMPLATE_TXT)).isLiveTemplateEnabledByDefault()); FileTemplateBase template = (FileTemplateBase)myTemplateManager.getTemplate("templateWithLiveTemplate.txt"); assertTrue(template.isLiveTemplateEnabledByDefault()); FileTemplateSettings settings = ApplicationManager.getApplication().getService(ExportableFileTemplateSettings.class); assertEquals(0, settings.getState().getContentSize()); template.setLiveTemplateEnabled(false); Element state = settings.getState(); assertNotNull(state); template.setLiveTemplateEnabled(true); assertEquals(0, settings.getState().getContentSize()); }