StringTemplateUtil { public static StringTemplateGroup loadTemplateGroupDollarSign(String templateName) { try (InputStreamReader reader = getTemplateInputStreamReader(templateName)) { return new StringTemplateGroup(reader, DefaultTemplateLexer.class); } catch(IOException e) { LOGGER.error("Error reading resource {}", templateName, e); throw new IllegalArgumentException("Resource not found: " + templateName); } } private  StringTemplateUtil(); static StringTemplateGroup loadTemplateGroupAngleBracket(String templateName); static StringTemplateGroup loadTemplateGroupDollarSign(String templateName);  }
@Test public void testLoadTemplateGroupWithDollarSign() { StringTemplateGroup stringTemplateGroup = StringTemplateUtil.loadTemplateGroupDollarSign("/stg/Test_Dollar.stg"); assertStringTemplate(stringTemplateGroup); }