### Question:
Utf8UrlCoder { public static String encode(String input) { try { return URLEncoder.encode(input, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } private  Utf8UrlCoder(); static String encode(String input); static String decode(String input);  }### Answer:
@Test public void encodeSimple() { assertEquals(ENCODED_SIMPLE, Utf8UrlCoder.encode(RAW_SIMPLE)); }
@Test public void encodeComplex() { assertEquals(ENCODED_COMPLEX, Utf8UrlCoder.encode(RAW_COMPLEX)); }