Journal implements Closeable { public Iterator<JournalEntry> entries() { return new IteratorEntries(0); } private  Journal(Location location);  Journal(BufferChannel chan); static boolean exists(Location location); static Journal create(Location location); void reopen(); synchronized long writeJournal(JournalEntry entry); synchronized long write(JournalEntryType type, FileRef fileRef, Block block); synchronized JournalEntry readJournal(long id); Iterator<JournalEntry> entries(); synchronized Iterator<JournalEntry> entries(long startPosition); void startWrite(); long writeStartPosn(); void commitWrite(); void abortWrite(); void endWrite(); void sync(); @Override void close(); long size(); boolean isEmpty(); void truncate(long size); void append(); long position(); void position(long posn); String getFilename();  }
@Test public void journal_01() { assertFalse(journal.entries().hasNext()) ; }