void () { NotExpressionPostfixTemplate builtinTemplate = new NotExpressionPostfixTemplate(); PostfixTemplateWrapper customTemplate = new PostfixTemplateWrapper("renamed", "renamed", ".renamed", builtinTemplate, PROVIDER); PostfixChangedBuiltinTemplate template = new PostfixChangedBuiltinTemplate(customTemplate, builtinTemplate); PostfixTemplate reloaded = reloadTemplate(template); assertInstanceOf(reloaded, PostfixChangedBuiltinTemplate.class); assertEquals("renamed", reloaded.getId()); assertEquals(".renamed", reloaded.getKey()); assertEquals("com.intellij.codeInsight.template.postfix.templates.NotExpressionPostfixTemplate#.not", ((PostfixChangedBuiltinTemplate)reloaded).getBuiltinTemplate().getId()); assertTrue(reloaded.isBuiltin()); }