private void testGetPersonData(Set<String> fields, String ownerId, String viewerId, String applicationId,
ApplicationData applicationData, Map<String, String> expectedData) throws Exception {
Set<UserId> userIds = new HashSet<UserId>(Arrays.asList(new UserId(UserId.Type.userId, VALID_USER_ID)));
SecurityToken securityToken = getMockSecurityToken(ownerId, viewerId, applicationId, VALID_MODULE_ID);
List<Person> users = Arrays.asList(validPerson);
GroupId groupId = new GroupId(GroupId.Type.self, "@self");
expect(personService.getPeople(userIds, groupId, null, securityToken)).andReturn(users);
replay(personService);