Do the RepositoryServiceTest on Activiti In Action chapter 4.