if (StringUtils.countMatches(getTimeOfDay(), ":") > 1) { df = new SimpleDateFormat(TEST_DATE_FORMAT); }
    private Date getTimeOfDayValue() {        DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);        // Purely for testing purposes, allow strings that specify time with great precision.        // Do so by counting colons, which is locale-specific, but that's OK for testing.        if (StringUtils.countMatches(getTimeOfDay(), ":") > 1) {            df = new SimpleDateFormat(TEST_DATE_FORMAT);        }        df.setTimeZone(TimeZone.getTimeZone("GMT"));        Date date = null;        try {            date = df.parse(getTimeOfDay());        } catch (ParseException e) {            throw new RuntimeException("Whacker: could not parse time of day: " + getTimeOfDay());        }        return date;    }