AtomDate implements Cloneable, Serializable { public AtomDate() { this(new Date()); } AtomDate();  AtomDate(String value);  AtomDate(Date value);  AtomDate(Calendar value);  AtomDate(long value); String getValue(); AtomDate setValue(String value); AtomDate setValue(Date date); AtomDate setValue(Calendar calendar); AtomDate setValue(long timestamp); Date getDate(); Calendar getCalendar(); long getTime(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override Object clone(); static Date parse(String date); static String format(Date date); static AtomDate valueOf(String value); static AtomDate valueOf(Date value); static AtomDate valueOf(Calendar value); static AtomDate valueOf(long value);  }
@Test public void testAtomDate() { Date now = new Date(); AtomDate atomNow = AtomDate.valueOf(now); String rfc3339 = atomNow.getValue(); atomNow = AtomDate.valueOf(rfc3339); Date parsed = atomNow.getDate(); assertEquals(now, parsed); }