### Question:
TemplateParamsExtractUtil { public static String renderESTemplateBody(String originContent, List<SearchTemplate> allFiles) { return "{\n\"template\":\"" + renderMacrosThenFormat(originContent, allFiles) + "\"\n}"; }  static Map<String, Object> getParams(String originContent, List<SearchTemplate> allFiles); static String renderESTemplateBody(String originContent, List<SearchTemplate> allFiles); static String renderMacrosThenFormat(String originContent, List<SearchTemplate> allFiles);  }### Answer:
@Test public void testRenderBody () { String s = "{{#a}}{{#a.list}}{{a.list.b}},{{a.list.c}}{{/a.list}}{{/a}}"; String result = renderESTemplateBody(s, new LinkedList<>()); assertEquals("{\n" + "\"template\":\"{{#a}}{{#a.list}}{{b}},{{c}}{{/a.list}}{{/a}}\"\n" + "}", result); }