SimpleHoliday extends DirectBean implements Holiday, MutableUniqueIdentifiable, Serializable { @Override public List<LocalDate> getHolidayDates() { return _holidayDates; } SimpleHoliday();  SimpleHoliday(final Iterable<LocalDate> dates); void addHolidayDate(final LocalDate date); void addHolidayDates(final Iterable<LocalDate> dates); static SimpleHoliday.Meta meta(); @Override SimpleHoliday.Meta metaBean(); @Override UniqueId getUniqueId(); @Override void setUniqueId(UniqueId uniqueId); final Property<UniqueId> uniqueId(); @Override HolidayType getType(); void setType(HolidayType type); final Property<HolidayType> type(); @Override ExternalId getRegionExternalId(); void setRegionExternalId(ExternalId regionExternalId); final Property<ExternalId> regionExternalId(); @Override ExternalId getExchangeExternalId(); void setExchangeExternalId(ExternalId exchangeExternalId); final Property<ExternalId> exchangeExternalId(); @Override ExternalId getCustomExternalId(); void setCustomExternalId(ExternalId customExternalId); final Property<ExternalId> customExternalId(); @Override Currency getCurrency(); void setCurrency(Currency currency); final Property<Currency> currency(); @Override List<LocalDate> getHolidayDates(); void setHolidayDates(List<LocalDate> holidayDates); final Property<List<LocalDate>> holidayDates(); @Override SimpleHoliday clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void test_constructor_Iterable() { final SimpleHoliday holidays = new SimpleHoliday(ImmutableList.of(DATE4, DATE3, DATE2, DATE3, DATE5)); assertEquals(4, holidays.getHolidayDates().size()); assertEquals(DATE2, holidays.getHolidayDates().get(0)); assertEquals(DATE3, holidays.getHolidayDates().get(1)); assertEquals(DATE4, holidays.getHolidayDates().get(2)); assertEquals(DATE5, holidays.getHolidayDates().get(3)); }