@Test void convertShouldThrowOnNullAddress() { assertThatThrownBy(() -> InternetAddressConverter.convert(null)) .isInstanceOf(NullPointerException.class); }
public static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients) { Preconditions.checkNotNull(recipients); return recipients.stream() .map(MailAddress::toInternetAddress) .collect(Guavate.toImmutableSet()); }
InternetAddressConverter { public static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients) { Preconditions.checkNotNull(recipients); return recipients.stream() .map(MailAddress::toInternetAddress) .collect(Guavate.toImmutableSet()); } }
InternetAddressConverter { public static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients) { Preconditions.checkNotNull(recipients); return recipients.stream() .map(MailAddress::toInternetAddress) .collect(Guavate.toImmutableSet()); }  }
InternetAddressConverter { public static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients) { Preconditions.checkNotNull(recipients); return recipients.stream() .map(MailAddress::toInternetAddress) .collect(Guavate.toImmutableSet()); }  static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients); }
InternetAddressConverter { public static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients) { Preconditions.checkNotNull(recipients); return recipients.stream() .map(MailAddress::toInternetAddress) .collect(Guavate.toImmutableSet()); }  static ImmutableSet<InternetAddress> convert(Collection<MailAddress> recipients);  }