@Test void toInternetAddressArrayShouldThrowWhenMailAddressesIsNull() { assertThatThrownBy(() -> MailAddressUtils.toInternetAddressArray(null)) .isInstanceOf(NullPointerException.class); }
public static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses) { return streamOfInternetAddress(mailAddresses) .toArray(InternetAddress[]::new); }
MailAddressUtils { public static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses) { return streamOfInternetAddress(mailAddresses) .toArray(InternetAddress[]::new); } }
MailAddressUtils { public static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses) { return streamOfInternetAddress(mailAddresses) .toArray(InternetAddress[]::new); }  }
MailAddressUtils { public static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses) { return streamOfInternetAddress(mailAddresses) .toArray(InternetAddress[]::new); }  static List<MailAddress> from(InternetAddress[] internetAddresses); static List<InternetAddress> toInternetAddresses(List<MailAddress> mailAddresses); static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses); static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress); }
MailAddressUtils { public static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses) { return streamOfInternetAddress(mailAddresses) .toArray(InternetAddress[]::new); }  static List<MailAddress> from(InternetAddress[] internetAddresses); static List<InternetAddress> toInternetAddresses(List<MailAddress> mailAddresses); static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses); static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress);  }