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));
weekTradingDays.add(new WeekTradingDay(Calendar.TUESDAY, tdBean1));
weekTradingDays.add(new WeekTradingDay(Calendar.WEDNESDAY, tdBean2));
weekTradingDays.add(new WeekTradingDay(Calendar.THURSDAY, tdBean1));
weekTradingDays.add(new WeekTradingDay(Calendar.FRIDAY, tdBean1));
bean.setWeekTradingDays(weekTradingDays);
Set<SpecificTradingDay> specialTradingDays = new HashSet<SpecificTradingDay>();
TradingDayBean stdBean1 = new TradingDayBean();
stdBean1.setTradingPeriods(new TradingPeriodBean[] { tpBeanMorning });
specialTradingDays.add(new SpecificTradingDay("20121224", stdBean1));
bean.setSpecialTradingDays(specialTradingDays);
bean.setIncludeAfterHours(true);
bean.setExchanges(new String[] { "GLOBEX", "CBOT" } );