Syntax { Pattern getRegexVerbatimEnd() { return regexVerbatimEnd; } Syntax(final String delimiterCommentOpen, final String delimiterCommentClose,
      final String delimiterExecuteOpen, final String delimiterExecuteClose,
      final String delimiterPrintOpen,
      final String delimiterPrintClose, final String delimiterInterpolationOpen,
      final String delimiterInterpolationClose, final String whitespaceTrim,
      final boolean enableNewLineTrimming); String getCommentOpenDelimiter(); String getCommentCloseDelimiter(); String getExecuteOpenDelimiter(); String getExecuteCloseDelimiter(); String getPrintOpenDelimiter(); String getPrintCloseDelimiter(); String getInterpolationOpenDelimiter(); String getInterpolationCloseDelimiter(); String getWhitespaceTrim();  }
@Test void testRegexVerbatimEnd() { Pattern pattern = this.syntax.getRegexVerbatimEnd(); String expectedPatternString = "\\Q{%\\E(\\Q-\\E)?\\s*endverbatim\\s*(\\Q-\\E)?\\Q%}\\E" + POSSIBLE_NEW_LINE; assertThat(pattern.toString()).isEqualTo(expectedPatternString); StringBuilder templateText = null; Matcher matcher = null; templateText = new StringBuilder().append("{%- endverbatim -%}abcd\r\n"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("{%endverbatim%}"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(true); templateText = new StringBuilder().append("endverbatim"); matcher = pattern.matcher(templateText); assertThat(matcher.lookingAt()).isEqualTo(false); }