// Create another nickname for the user.
String nickname1 = "Suse-" + randomFactor;
NicknameEntry createdNicknameEntry1 = createNickname(username, nickname1);
// Retrieve the nicknames for user.
NicknameFeed retrievedNicknameFeed = retrieveNicknames(username);
StringBuffer nicknames = new StringBuffer();
Iterator<NicknameEntry> nicknameIterator =
retrievedNicknameFeed.getEntries().iterator();
while (nicknameIterator.hasNext()) {
nicknames.append(nicknameIterator.next().getNickname().getName());
if (nicknameIterator.hasNext()) {
nicknames.append(", ");
}