### Question:
DotByTildaEscapeUtil { public String toDotQualifiedString(String... tokens){ if(tokens == null || tokens.length == 0) return null; StringBuilder builder = new StringBuilder(); for (String token : tokens) { if(builder.length() != 0){ builder.append(DELIMITER_CHARACTER); } builder.append(escapeDot(token)); } return builder.toString(); }  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 toDotQualifiedString(){ final String path = util.toDotQualifiedString(new String[]{ "blah.blah~.~~.blah~blah~~", "blah.blah~.~~.blah~blah~~", "blah.blah~.~~.blah~blah~~"}); Assert.assertEquals("blah~.blah~~~.~~~~~.blah~~blah~~~~" + "." + "blah~.blah~~~.~~~~~.blah~~blah~~~~" + "." + "blah~.blah~~~.~~~~~.blah~~blah~~~~", path); }