### Question:
XSLTHelper { public static String formatTime(String iso8601) throws ParseException { final Date date = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(iso8601); return DateFormat.getDateTimeInstance().format(date); } XSLTHelper(); static String formatTime(String iso8601); static String quoteForPython(String value); static String quoteEOLEscapedStringForPython(String value); static String quoteForClojure(String value); static String quoteEOLEscapedStringForClojure(String value); static String summariseAsLine(String value, int maximumCharacters); static String escape(String value); static String indent(); static String newLine(); static String newLineAndIndent(); static String changeIndent(int indentChange); static String resetIndent(); static String base64ToPython(String base64String); static String base64ToClojure(String base64String); static void setIndentString(String indentString);  }### Answer:
@Test public void testFormatTime() throws Exception { try { XSLTHelper.formatTime("abc"); fail("Expected ParseException"); } catch (ParseException e) { } final String s = XSLTHelper.formatTime("2005-01-04T18:30:00"); assertNotNull(s); }