expect(appDataRepository.getApplicationData(VALID_USER_ID, VALID_APPLICATION_ID)).andReturn(applicationData);
Capture<ApplicationData> capturedApplicationData = new Capture<ApplicationData>();
expect(appDataRepository.save(capture(capturedApplicationData))).andReturn(null);
replay(appDataRepository);
ReentrantLock lock = new ReentrantLock();
expect(lockService.borrowLock(anyObject(String.class), anyObject(String.class))).andReturn(lock);
lockService.returnLock(lock);
replay(lockService);
appDataService.updatePersonData(userId, groupId, VALID_APPLICATION_ID, fields, values, securityToken);