### Question:
TimeDatum extends Datum { @Override public String asChars() { return time.toString(DEFAULT_FORMATTER); } TimeDatum(long value);  TimeDatum(int hour, int minute, int second);  TimeDatum(int hour, int minute, int second, int millis);  TimeDatum(String timeStr);  TimeDatum(LocalTime time);  TimeDatum(byte [] bytes); int getHourOfDay(); int getMinuteOfHour(); int getSecondOfMinute(); int getMillisOfDay(); int getMillisOfSecond(); String toString(); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override String asChars(); String toChars(String format); @Override int size(); @Override byte [] asByteArray(); @Override Datum equalsTo(Datum datum); @Override int compareTo(Datum datum); boolean equals(Object obj); @Override int hashCode(); static final int SIZE; static final String DEFAULT_FORMAT_STRING; }### Answer:
@Test public final void testAsText() { Datum d = DatumFactory.createTime(TIME); Datum copy = DatumFactory.createTime(d.asChars()); assertEquals(d, copy); }