### Question:
TimestampDatum extends Datum { @Override public long asInt8() { return dateTime.getMillis(); } TimestampDatum(int timestamp);  TimestampDatum(DateTime dateTime);   TimestampDatum(byte [] bytes);  TimestampDatum(String datetime); int getUnixTime(); long getMillis(); DateTime getDateTime(); int getCenturyOfEra(); int getEra(); int getYear(); int getMonthOfYear(); int getDayOfWeek(); int getDayOfYear(); int getDayOfMonth(); int getHourOfDay(); int getMinuteOfHour(); int getSecondOfDay(); int getSecondOfMinute(); int getMillisOfSecond(); int getWeekyear(); int getWeekOfWeekyear(); @Override long asInt8(); String toString(); @Override String asChars(); String toChars(DateTimeFormatter 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; static final String DEFAULT_FORMAT_STRING; static final String FRACTION_FORMAT_STRING; }### Answer:
@Test public final void testAsInt8() { Datum d = DatumFactory.createTimeStamp(timestamp); long javaTime = timestamp * 1000l; assertEquals(javaTime, d.asInt8()); }