@Test
public void whenSeparatorInputIsIncompleteShouldJoinStrings() {

    List<String> list = Arrays.asList("a", "b", "");
    String result = StringUtils.join(list, ",");
    assertThat(result, is("a,b,"));
}