### Question:
LogicalTimestamp implements Timestamp { public LogicalTimestamp(long value) { this.value = value; } LogicalTimestamp(long value); static LogicalTimestamp of(long value); long value(); Version asVersion(); @Override int compareTo(Timestamp o); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testLogicalTimestamp() throws Exception { LogicalTimestamp timestamp = LogicalTimestamp.of(1); assertEquals(1, timestamp.value()); assertTrue(timestamp.isNewerThan(LogicalTimestamp.of(0))); assertFalse(timestamp.isNewerThan(LogicalTimestamp.of(2))); assertTrue(timestamp.isOlderThan(LogicalTimestamp.of(2))); assertFalse(timestamp.isOlderThan(LogicalTimestamp.of(0))); }