void () { JavaEditablePostfixTemplate customTemplate = new JavaEditablePostfixTemplate("myId", "myKey", "", "", Collections.emptySet(), LanguageLevel.JDK_1_8, true, PROVIDER); AssertStatementPostfixTemplate builtinTemplate = new AssertStatementPostfixTemplate(PROVIDER); PostfixChangedBuiltinTemplate template = new PostfixChangedBuiltinTemplate(customTemplate, builtinTemplate); PostfixTemplate reloaded = reloadTemplate(template); assertInstanceOf(reloaded, PostfixChangedBuiltinTemplate.class); assertEquals("myId", reloaded.getId()); assertEquals("assert", ((PostfixChangedBuiltinTemplate)reloaded).getBuiltinTemplate().getId()); assertTrue(reloaded.isBuiltin()); }