LogCommand extends RevisionRangeCommand { public Revision calculateNextRevision() { return nextRevision != null ? nextRevision : getRevision(); }  String getNextPath(); void setNextPath(final String nextPath); Revision getNextRevision(); void setNextRevision(final Revision nextRevision); boolean isStopOnCopy(); void setStopOnCopy(final boolean stopOnCopy); boolean isPaging(); void setPaging(final boolean paging); long calculateFromRevision(long headRevision); Revision calculateNextRevision(); String calculateNextPath(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testCalculateNextRevision() throws Exception { final LogCommand command = new LogCommand(); assertEquals(Revision.HEAD, command.calculateNextRevision()); command.setNextRevision(Revision.create(123)); assertEquals(123, command.calculateNextRevision().getNumber()); }