### Question:
Time extends IQ { public String getTzo() { return tzo; } 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 negativeTimezoneTest() { Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT-830")); Time time = new Time(calendar); assertEquals("-8:30", time.getTzo()); }
@Test public void positiveTimezoneTest() { Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT+830")); Time time = new Time(calendar); assertEquals("+8:30", time.getTzo()); }