### Question:
TimePosition implements ITimePosition, Comparable<ITimePosition>, Serializable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } TimePosition other = (TimePosition) obj; if (day != other.day) { return false; } if (hour != other.hour) { return false; } if (isDateComplete != other.isDateComplete) { return false; } if (minute != other.minute) { return false; } if (month != other.month) { return false; } if (Double.doubleToLongBits(second) != Double.doubleToLongBits(other.second)) { return false; } if (timePos == null) { if (other.timePos != null) { return false; } } else if (!timePos.equals(other.timePos)) { return false; } if (timeZone == null) { if (other.timeZone != null) { return false; } } else if (!timeZone.equals(other.timeZone)) { return false; } if (year != other.year) { return false; } return true; } TimePosition(final String timePos); @Override long getYear(); @Override int getMonth(); @Override int getDay(); @Override int getHour(); @Override int getMinute(); @Override float getSecond(); @Deprecated ITimeResolution getTimeResolution(); @Override String toISO8601Format(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(final ITimePosition timePosP); @Override int compare(final ITimePosition o1, final ITimePosition o2); @Override boolean before(final ITimePosition timePosP); @Override boolean after(final ITimePosition timePosP); @Override Calendar getCalendar(); @Override String getTimezone(); void setTimezone(final String timezone); static final String YEAR_PATTERN; static final String MONTH_PATTERN; static final String DAY_PATTERN; static final String HOUR_PATTERN; static final String MINUTE_PATTERN; static final String SECOND_PATTERN; static final String UTC_PATTERN; }### Answer:
@Test public void testCreateITimeFromISO8601WithZuluOffset() { TimePosition withoutOffset = new TimePosition("2014-03-30T02:05:20.000"); TimePosition withZulu = new TimePosition("2014-03-30T02:05:20.000Z"); withoutOffset.equals(withZulu); }