void () { FileTemplate template = myTemplateManager.getTemplate(TEST_TEMPLATE_TXT); assertTrue(template.isReformatCode()); template.setReformatCode(false); FileTemplateSettings settings = ApplicationManager.getApplication().getService(ExportableFileTemplateSettings.class); Element state = settings.getState(); assertNotNull(state); Element element = state.getChildren().get(0).getChildren().get(0); assertEquals("<template name=\"testTemplate.txt\" reformat=\"false\" live-template-enabled=\"false\" enabled=\"true\" />", JDOMUtil .writeElement(element)); }