Do the HistoryServiceTest on Activiti In Action chapter 4.