RegexTool { public String quoteReplacement(String s) { return Matcher.quoteReplacement(s); }  List<RegexResult> find(String content, String regex); List<List<RegexResult>> findAll(String content, String regex); Pattern compile(String regex); String quote(String s); String quoteReplacement(String s);  }
@Test void quoteReplacement() { RegexTool tool = new RegexTool(); assertEquals(Matcher.quoteReplacement("$1 \\$2"), tool.quoteReplacement("$1 \\$2")); }