### Question:
Template { String templateNameWithoutBrackets() { return templateName.replaceFirst("\\[.+]$", ""); } Template(String templateName, File source, Pattern pattern); Template resolveBy(Resolver resolver, DeclaringComponent currentComponent); Template postProcessContent(TemplateContentPostProcessor postProcessor,
                                       String templateType, TypedProperties properties); void copyTo(File destinationFile); static boolean isValidPlaceholder(String value);  }### Answer:
@Test void templateNameWithoutBrackets() { Template template = new Template("name[12]", source, TemplatePattern.DEFAULT_PATTERN, "content"); assertEquals("name", template.templateNameWithoutBrackets()); }