### Question:
Mooring implements ReplicatorLog { @Override public long getLastIndex() { return lastIndex; } Mooring(OLog log, String quorumId); @Override ListenableFuture<Boolean> logEntries(List<LogEntry> entries); @Override ListenableFuture<List<LogEntry>> getLogEntries(long start, long end); @Override long getLogTerm(long index); @Override long getLastTerm(); @Override long getLastIndex(); @Override ListenableFuture<Boolean> truncateLog(long entryIndex); @Override QuorumConfiguration getLastConfiguration(); @Override long getLastConfigurationIndex();  }### Answer:
@Test public void returnsZeroFromGetLastIndexWhenLogIsEmpty() { ignoringLog(); assertThat(log.getLastIndex(), is(equalTo(0L))); }