### Question:
ICalendarConverter { @VisibleForTesting String organizer(String organizer, List<Address> fromList) { Address from = Iterables.getFirst(fromList, null); if (from != null) { return Objects.firstNonNull(Strings.emptyToNull(organizer), from.getMail()); } return organizer; }  MSMeetingRequest convertToMSMeetingRequest(ICalendar icalendar);  }### Answer:
@Test public void testOrganizerWhenNone() { assertThat(icalendarConverter.organizer(null, ImmutableList.<Address>of())).isNull(); }
@Test public void testOrganizerWhenInICS() { assertThat(icalendarConverter.organizer("user@domain.org", ImmutableList.<Address>of())) .isEqualTo("user@domain.org"); }
@Test public void testOrganizerWhenInICSAndFromExists() { assertThat(icalendarConverter.organizer("user@domain.org", ImmutableList.of(new Address("user2@domain.org")))) .isEqualTo("user@domain.org"); }
@Test public void testOrganizerWhenNullInICSAndFromExists() { assertThat(icalendarConverter.organizer(null, ImmutableList.of(new Address("user2@domain.org")))) .isEqualTo("user2@domain.org"); }
@Test public void testOrganizerWhenEmptyInICSAndFromExists() { assertThat(icalendarConverter.organizer("", ImmutableList.of(new Address("user2@domain.org")))) .isEqualTo("user2@domain.org"); }