@Test
public void testConvertRecipientList_userName()
throws AddressException, IOException, UnsupportedEncodingException {
Mailer.descriptor().setDefaultSuffix("@gmail.com");
User u = User.get("advantiss");
u.setFullName("Peter Samoshkin");
Mailer.UserProperty prop = new Mailer.UserProperty("advantiss@xxx.com");
u.addProperty(prop);
InternetAddress[] internetAddresses = emailRecipientUtils.convertRecipientString("advantiss", envVars).toArray(new InternetAddress[0]);
assertEquals(1, internetAddresses.length);
assertEquals("advantiss@xxx.com", internetAddresses[0].getAddress());