ParameterNameSanitizer implements Sanitizer<String> { @Override public String execute(String content) { if (StringUtils.isBlank(content)) { return content; } return PATTERN.matcher(content).replaceAll(""); }  @Override String execute(String content);  }
@Test public void testExecute() throws Exception { ParameterNameSanitizer parameterNameSanitizer = new ParameterNameSanitizer(); assertEquals("Abc-12_4", parameterNameSanitizer.execute("Abc-12_4")); assertEquals("Abc-12_4", parameterNameSanitizer.execute("Abc-1 2_4")); assertEquals("Abc-12_4", parameterNameSanitizer.execute("Abc-12_4!")); assertEquals("Abc-12_4", parameterNameSanitizer.execute("?Ab\"c-'12_4!")); assertEquals("script", parameterNameSanitizer.execute("<script>")); }