### Question:
UrlUtils { public static String arrayToString(String[] values) { StringBuilder paramsString = new StringBuilder(); for (int i = 0; i < values.length; i++) { if (i == 0) { paramsString.append(values[i]); } else { paramsString.append(","); paramsString.append(values[i]); } } return paramsString.toString(); }  static String paramsMapToString(Map<String, String[]> params); static String arrayToString(String[] values);  }### Answer:
@Test public void testArrayToString() { String[] strArr = {"1", "2", "3"}; String result = UrlUtils.arrayToString(strArr); Assert.assertEquals(result, "1,2,3"); }