JournalEntry extends Document { long getRevisionTimestamp() { final String[] parts = getId().split("-"); return Long.parseLong(parts[1], 16); } JournalEntry(DocumentStore store);   JournalEntry(DocumentStore store, boolean concurrent, ChangeSetBuilder changeSetBuilder,
                 JournalPropertyHandler journalPropertyHandler); void readFrom(CommitInfo info); static final String MODIFIED; }
@Test public void getRevisionTimestamp() throws Exception { DocumentStore store = new MemoryDocumentStore(); JournalEntry entry = JOURNAL.newDocument(store); entry.modified(p("/foo")); Revision r = Revision.newRevision(1); assertTrue(store.create(JOURNAL, Collections.singletonList(entry.asUpdateOp(r)))); entry = store.find(JOURNAL, JournalEntry.asId(r)); assertEquals(r.getTimestamp(), entry.getRevisionTimestamp()); }