### Question:
GuestbookNavigation { public Entry getNext() { for (Entry entry : entryDao.readAll()) { if (entry.getId() > current.getId()) { return entry; } } return null; }  Entry getCurrent(); void setCurrent(Entry argCurrent); Entry getNext(); Entry getPrevious(); boolean isNextExists(); boolean isPreviousExists(); EntryDao getEntryDao(); void setEntryDao(EntryDao argEntryDao);  }### Answer:
@Test public void test_no_next() { expect(daoMock.readAll()).andReturn(new ArrayList<Entry>()); replay(daoMock); assertNull(classUnderTest.getNext()); verify(daoMock); }