person.setAboutMe("About Me");
Name personName = new NameImpl();
personName.setGivenName("User1");
personName.setFamilyName("Abcd");
person.setName(personName);
ListField email = new ListFieldImpl();
email.setValue("user1@abcd.org");
List<ListField> emails = new ArrayList<ListField>();
emails.add(email);
person.setEmails(emails);
ListField telephone = new ListFieldImpl();
telephone.setValue("99999999");
List<ListField> teleList = new ArrayList<ListField>();
teleList.add(telephone);
person.setPhoneNumbers(teleList);
personManager.savePerson("user1", person);
Person[] person2;
person2 = personManager.getPeople(new String[]{"user1"}, "SELF", null, new String[]{"NAME", "EMAILS", "ABOUT_ME", "PHONE_NUMBERS"});
assertNotNull(person2);
assertEquals(person2.length, 1);
person.setId("user2");
person.setNickname("User-2");
person.setAboutMe("About Me");
personName = new NameImpl();
personName.setGivenName("User2");
personName.setFamilyName("Abcd");
person.setName(personName);
email = new ListFieldImpl();
email.setValue("user2@abcd.org");
emails = new ArrayList<ListField>();
emails.add(email);
person.setEmails(emails);
telephone = new ListFieldImpl();
telephone.setValue("123456");
teleList = new ArrayList<ListField>();
teleList.add(telephone);
person.setPhoneNumbers(teleList);
personManager.savePerson("user2", person);
person2 = personManager.getPeople(new String[]{"user1"}, "ALL", null, new String[]{"NAME", "EMAILS", "ABOUT_ME", "PHONE_NUMBERS"});