### Question:
DotByTildaEscapeUtil { public String escapeDot(String toEscape){ String result = toEscape; if (result.contains(ESCAPE_CHARACTER)) { result = result.replace(ESCAPE_CHARACTER, DOUBLE_ESCAPE_CHARACTER); } if (result.contains(DELIMITER_CHARACTER)) { result = result.replace(DELIMITER_CHARACTER, ESCAPED_DELIMITER_CHARACTER); } return result; }  String escapeDot(String toEscape); String unEscapeDot(String toUnEscape); String[] splitByDotUnEscapeTokens(String dotQualifiedString); String toDotQualifiedString(String... tokens); static final String ESCAPE_CHARACTER; static final String DELIMITER_CHARACTER; static final String DOUBLE_ESCAPE_CHARACTER; static final String ESCAPED_DELIMITER_CHARACTER; }### Answer:
@Test public void escapeDot(){ Assert.assertEquals("blah~.blah~~~.~~~~~.blah~~blah~~~~", util.escapeDot("blah.blah~.~~.blah~blah~~")); }