### Question:
DateDatum extends Datum { @Override public long asInt8() { return jdate; } DateDatum(int value);  DateDatum(TimeMeta tm); TimeMeta asTimeMeta(); @Override byte[] asTextBytes(); int getCenturyOfEra(); int getYear(); int getWeekyear(); int getMonthOfYear(); int getDayOfYear(); int getDayOfWeek(); int getISODayOfWeek(); int getWeekOfYear(); int getDayOfMonth(); @Override String toString(); @Override Datum plus(Datum datum); @Override Datum minus(Datum datum); @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); @Override boolean equals(Object obj); @Override int hashCode(); static final int SIZE; }### Answer:
@Test public final void testAsInt8() { Datum d = DatumFactory.createDate(DATE); Datum copy = DatumFactory.createDate((int) d.asInt8()); assertEquals(d, copy); }