@Test
public void should_convert_single_element_with_delimiters_to_one_element_array() throws Exception {

    // given
    StateTypeConverter typeConverter = new StateTypeConverter();
    String[] singleElementArray = Arrays.array("one element");
    // when
    String[] convertedStringArray = typeConverter.convert("one element,,,,,,,", String[].class);
    // then
    assertThat(convertedStringArray).isEqualTo(singleElementArray);
}