ContactList { public boolean isEmailPrioInstitutional() { return emailPrioInstitutional; } ContactList(String name);  ContactList(String name, String description); boolean isEmailPrioInstitutional(); void setEmailPrioInstitutional(boolean emailPrioInstitutional); void add(String emailAddress); void add(OLATPrincipal principal); void remove(OLATPrincipal principal); String getName(); String getRFC2822Name(); String getRFC2822NameWithAddresses(); String getDescription(); ArrayList<String> getEmailsAsStrings(); void add(ContactList emailList); @Override String toString(); void addAllIdentites(List<? extends OLATPrincipal> listOfIdentity); InternetAddress[] getEmailsAsAddresses(); Hashtable<String, OLATPrincipal> getIdentityEmails();  }
@Test @Ignore("not fixed yet, see OLAT-5802 ContactList contactlist = new ContactList(simple);escape or remove umlaute in to: field since they are not RFC 2822 conform (OLAT-5760)") public void testSimpleCHUmlautContactListNameAndInstitutionalPrioFalse() throws UnsupportedEncodingException { String simpleCHUmlaut = "Kurs mit Spezialfällen Ä und é"; String expectedRFC2047name = javax.mail.internet.MimeUtility.encodeWord(simpleCHUmlaut, "UTF-8", null); ContactList contactlist = new ContactList(simpleCHUmlaut); verifyNameAndRFC2822NameFor(expectedRFC2047name, contactlist); assertFalse("Institutional Email is not set", contactlist.isEmailPrioInstitutional()); }