### Question:
Guestbook { @Post public String save() { newEntry.setDate(new Date()); Integer id = entryDao.save(newEntry); return String.format("/sample/guestbook/%1$s", id); } Guestbook(EntryDao argEntryDao);  Guestbook(); List<Entry> getEntries(); @Get void load(); @Post String save(); Entry getNewEntry(); void setNewEntry(Entry argNewEntry); EntryDao getEntryDao(); void setEntryDao(EntryDao argEntryDao);  }### Answer:
@Test public void test_save() { expect(daoMock.save(isA(Entry.class))).andReturn(1); replay(daoMock); assertEquals("/sample/guestbook/1", classUnderTest.save()); verify(daoMock); }