Do the IdentityServiceTest on Activiti In Action chapter 4.