public static String implode(String[] array, String sepString) {
        if (array==null) return null;
        StringBuilder ret = new StringBuilder();
        if (sepString==null) sepString="";
        for (int i = 0 ; i<array.length ; i++) {
            ret.append(array[i]);
            if (!(i==array.length-1)) ret.append(sepString);
        }
        return ret.toString();
    }
@Test
    public void testImplode() {
        assertNull(StringUtilities.implode(null, null));
        assertEquals(StringUtilities.implode(new String[0], null), "");
        assertEquals(StringUtilities.implode(new String[] {"foo"}, null), "foo");
        assertEquals(StringUtilities.implode(new String[] {"foo"}, "asdfsdfsadfsadfasdfs"), "foo");
        assertEquals(StringUtilities.implode(new String[] {"foo", "bar"}, null), "foobar");
        assertEquals(StringUtilities.implode(new String[] {"foo", "bar"}, "\n"), "foo\nbar");
        assertEquals(StringUtilities.implode(new String[] {"foo"}, "\n"), "foo");
        assertEquals(StringUtilities.implode(new String[] {"foo", "bar", null}, "\n"), "foo\nbar\nnull");
        assertEquals(StringUtilities.implode(new String[] {"foo", "bar"}, "\n"), "foo\nbar");
        assertEquals(StringUtilities.implode(new String[] {"foo", "bar", "baz"}, null), "foobarbaz");

    }