closingDays.add(new BareDate(2012, 12, 25));
closingDays.add(new BareDate(2012, 12, 31));
closingDays.add(new BareDate(2011, 1, 1));
bean.setClosingDays(closingDays);
Set<WeekTradingDay> weekTradingDays = new HashSet<WeekTradingDay>();
TradingPeriodBean tpBeanUnique = new TradingPeriodBean();
tpBeanUnique.setStartHour(10);
tpBeanUnique.setStartMinute(0);
tpBeanUnique.setEndHour(22);
tpBeanUnique.setEndMinute(30);
TradingPeriodBean tpBeanMorning = new TradingPeriodBean();
tpBeanMorning.setStartHour(10);
tpBeanMorning.setStartMinute(0);
tpBeanMorning.setEndHour(13);
tpBeanMorning.setEndMinute(30);
TradingPeriodBean tpBeanAfternoon = new TradingPeriodBean();
tpBeanAfternoon.setStartHour(14);
tpBeanAfternoon.setStartMinute(0);
tpBeanAfternoon.setEndHour(23);
tpBeanAfternoon.setEndMinute(30);
TradingDayBean tdBean1 = new TradingDayBean();
tdBean1.setTradingPeriods(new TradingPeriodBean[] { tpBeanUnique });
TradingDayBean tdBean2 = new TradingDayBean();
tdBean2.setTradingPeriods(new TradingPeriodBean[] { tpBeanMorning, tpBeanAfternoon });
weekTradingDays.add(new WeekTradingDay(Calendar.MONDAY, tdBean1));