### Question:
Time extends IQ { public Date getTime() { if (utc == null) { return null; } Date date = null; try { date = XmppDateTime.parseDate(utc); } catch (Exception e) { LOGGER.log(Level.SEVERE, "Error getting local time", e); } return date; } Time();  Time(Calendar cal); Date getTime(); void setTime(Date time); String getUtc(); void setUtc(String utc); String getTzo(); void setTzo(String tzo); static Time createResponse(IQ request); static final String NAMESPACE; static final String ELEMENT; }### Answer:
@Test public void parseCurrentTimeTest() { Calendar calendar = Calendar.getInstance(); Time time = new Time(calendar); Date date = time.getTime(); Date calendarDate = calendar.getTime(); assertEquals(calendarDate, date); }