### Question:
Utils { public static String implode(String separator, List<String> elements){ StringBuffer s = new StringBuffer(); for(int i = 0; i < elements.size(); i++){ if(i > 0){ s.append(" "); } s.append(elements.get(i)); } return s.toString(); }  static List<String> merge(List<String> first, List<String> second); static List<String> prepend(String first, List<String> list); static String normalize(String path); static String implode(String separator, List<String> elements); static boolean isRelative(String path);  }### Answer:
@Test public void testImplode() { final String separator = "Bar"; final List<String> elements = new ArrayList<String>(); assertEquals("", Utils.implode(separator, elements)); elements.add("foo"); elements.add("bar"); assertEquals("foo bar", Utils.implode(separator, elements)); }