### Question:
ParamChecker { public static Date checkDateOozieTZ(String date, String name) { Date ret; try { ret = DateUtils.parseDateOozieTZ(date); } catch (Exception ex) { throw new IllegalArgumentException(XLog.format( "parameter [{0}] = [{1}] must be Date in {2} format ({3})." + " Parsing error {4}", name, date, DateUtils.getOozieProcessingTimeZone().getID(), DateUtils.getOozieTimeMask(), ex)); } return ret; }  static String notEmpty(String str, String name); static String notEmpty(String str, String name, String info); static List<String> notEmptyElements(List<String> list, String name); static String validateActionName(String actionName); static boolean isValidIdentifier(String token); static int checkGTZero(int value, String name); static int checkGEZero(int value, String name); static int checkLEZero(int value, String name); static int checkInteger(String val, String name); static String checkFrequency(String val); static Date checkDateOozieTZ(String date, String name); static TimeZone checkTimeZone(String tzStr, String name); static boolean isMember(String item, String[] members, String name);  }### Answer:
@Test public void testCheckUTC() { ParamChecker.checkDateOozieTZ("2009-02-01T01:00Z", "test"); try { ParamChecker.checkDateOozieTZ("2009-02-01T01:00", "test"); fail(); } catch (Exception ex) { } try { ParamChecker.checkDateOozieTZ("2009-02-01U01:00Z", "test"); fail(); } catch (Exception ex) { } }