@Test
public void should_convert_blank_to_empty_string_when_appear_in_sequence_with_non_blanks() throws Exception {

    // given
    StateTypeConverter typeConverter = new StateTypeConverter();
    String[] expectedArray = Arrays.array("a", "", "test", "", "", "b");
    // when
    String[] convertedStringArray = typeConverter.convert("a,   , test  ,   ,      , b ", String[].class);
    // then
    assertThat(convertedStringArray).isEqualTo(expectedArray);
}