private void assertThatOnlyNewEmailAddressIsPrimary() {
   for (Email email : returnUser.getEmails()) {
     if (email.getValue().equals("*****@*****.**")) {
       assertThat(email.isPrimary(), is(true));
     } else {
       assertThat(email.isPrimary(), is(false));
     }
   }
 }
 private boolean isValuePartOfEmailList(List<Email> list, String value) {
   if (list != null) {
     for (Email actAttribute : list) {
       if (actAttribute.getValue().equals(value)) {
         return true;
       }
     }
   }
   return false;
 }