EmbeddedFunctions { public static Set<String> split(String string) { return split(string, '|'); }  static boolean isInTree(Serializable id, Serializable baseId); static boolean isInTree(Connection conn, Serializable id,
            Serializable baseId); static boolean isAccessAllowed(Serializable id,
            Set<String> principals, Set<String> permissions); static boolean isAccessAllowed(Connection conn, Serializable id,
            Set<String> principals, Set<String> permissions); static String parseFullText(String string1, String string2); static final String parseWord(String string); static Set<String> split(String string); static Set<String> split(String string, char sep);  }
@Test public void testSplit() { checkSplit(""); checkSplit("A", "A"); checkSplit("A|B|C", "A", "B", "C"); checkSplit("A||B", "A", "B", ""); checkSplit("|A|B|C", "A", "B", "C", ""); checkSplit("A|B|C|", "A", "B", "C", ""); checkSplit("||", ""); checkSplit('-', "A-B-C", "A", "B", "C"); }