@Test
void testRegexVerbatimEnd() {

   
attern pattern = this.syntax.getRegexVerbatimEnd();
*  
 "{%" followed by an optional "-" and/or zero or more whitespace characters, followed by "endverbatim",
 followed by zero or more whitespace characters and/or an optional "-" followed by "%}" 
 followed by an optional possible new line character
*/ 
tring expectedPatternString = "\\Q{%\\E(\\Q-\\E)?\\s*endverbatim\\s*(\\Q-\\E)?\\Q%}\\E" + POSSIBLE_NEW_LINE;
  // verify that the regex in the Syntax class is the expected pattern string
  assertThat(pattern.toString()).isEqualTo(expectedPatternString);	  
  
  StringBuilder templateText = null;
  Matcher matcher = null;
  
  // Space and whitespacetrim characters should match
  templateText = new StringBuilder().append("{%- endverbatim -%}abcd\r\n");
atcher = pattern.matcher(templateText);
  assertThat(matcher.lookingAt()).isEqualTo(true);
  
  // No spaces or whitespacetrim characters should match
  templateText = new StringBuilder().append("{%endverbatim%}");
atcher = pattern.matcher(templateText);
  assertThat(matcher.lookingAt()).isEqualTo(true);
  
  // Missing delimiters should not match
  templateText = new StringBuilder().append("endverbatim");
atcher = pattern.matcher(templateText);
  assertThat(matcher.lookingAt()).isEqualTo(false);
}