@Test
public void testJoinStrings() {

    System.out.println("JoinStrings");
    String[] cases = {
        "a",
        "a|b|c",
        ""
    };
    String[] results = {
        "a",
        "a-b-c",
        ""
    };
    for (int i = 0; i < cases.length; i++) {
        assertEquals(results[i], Strings.joinStrings(Arrays.asList(results[i].split("\\|")), false,'-'));
    }
}