@Test
public void testJoin() {

	assertThat(StringUtils.join(new String[] {"a"}, ","), is(equalTo("a")));
	assertThat(StringUtils.join(new String[] {"a", "b"}, ","), is(equalTo("a,b")));
	assertThat(StringUtils.join(new String[] {"a", "b", "c"}, ","), is(equalTo("a,b,c")));
	assertThat(StringUtils.join(new String[] {"foo", "bar"}, ""), is(equalTo("foobar")));
	assertThat(StringUtils.join(new String[] {}, ","), is(equalTo("")));
	assertThat(StringUtils.join(new String[] {}, ""), is(equalTo("")));
	assertThat(StringUtils.join(null, ","), is(equalTo(null)));
}