void () { AllFileTemplatesConfigurable configurable = new AllFileTemplatesConfigurable(getProject()); try { configurable.createComponent(); configurable.reset(); FileTemplate template = configurable.createTemplate("foo", "bar", "hey", false); assertTrue(configurable.isModified()); List<FileTemplate> templates = configurable.getTabs()[0].getTemplates(); assertTrue(templates.contains(template)); configurable.changeScheme(myTemplateManager.getProjectScheme()); assertTrue(configurable.isModified()); // assertEquals(templates.length, configurable.getTabs()[0].getTemplates().length); // assertTrue(ArrayUtil.contains(template, configurable.getTabs()[0].getTemplates())); } finally { configurable.disposeUIResources(); } }