### Question:
StringArrayToMapConverter implements Converter<String[], Map<String, String>> { @Override public Map<String, String> convert(String[] source) { return ObjectUtils.isEmpty(source) ? null : CollectionUtils.toStringMap(source); }  @Override Map<String, String> convert(String[] source);  }### Answer:
@Test public void testConvert() { StringArrayToMapConverter converter = new StringArrayToMapConverter(); Map<String, String> value = converter.convert(new String[]{"Hello", "World"}); Map<String, String> expected = new LinkedHashMap<String, String>(); expected.put("Hello", "World"); Assertions.assertEquals(expected, value); value = converter.convert(new String[]{}); Assertions.assertNull(value); value = converter.convert(null); Assertions.assertNull(value); }