### Question:
SlugifyUtils { public static String getSlug(String str) { if ( str == null ) { return ""; } String noWhiteSpace = WHITESPACE.matcher(str.trim()).replaceAll("-"); try { noWhiteSpace = URLEncoder.encode(noWhiteSpace, "UTF-8"); } catch (UnsupportedEncodingException e) { } String normalized = Normalizer.normalize(noWhiteSpace, Form.NFD); return normalized.toLowerCase(); }  static String getSlug(String str);  }### Answer:
@Test public void testGetSlugWithAsciiChars() { Assertions.assertEquals("a-b--c", SlugifyUtils.getSlug("a b -C")); }
@Test public void testGetSlugWithChineseCharacters() { Assertions.assertEquals("a%e4%b8%ad%e6%96%87-b", SlugifyUtils.getSlug("a中文 b")); }