*/
public class ModelTestCase {
private Event createTestEvent() throws Exception {
Event e = new Event();
e.setName("Super Event");
Stage stageA = e.addStage("Stage A");
DayProgram stageAday1 = stageA.addDay(dateTime("01-01-2010 0:00"));
stageAday1.addShow("Performance A1", dateTime("01-01-2010 10:00"), duration("1:00"));
stageAday1.addShow("Performance A2", dateTime("01-01-2010 11:30"), duration("1:00"));
stageAday1.addShow("Performance A3", dateTime("01-01-2010 13:00"), duration("1:00"));
DayProgram stageAday2 = stageA.addDay(dateTime("02-01-2010 0:00"));
stageAday2.addShow("Performance A4", dateTime("02-01-2010 10:00"), duration("1:00"));
stageAday2.addShow("Performance A5", dateTime("02-01-2010 11:30"), duration("1:00"));
stageAday2.addShow("Performance A6", dateTime("02-01-2010 13:00"), duration("2:00"));
Stage stageB = e.addStage("Stage B");
DayProgram stageBday1 = stageB.addDay(dateTime("01-01-2010 0:00"));
stageBday1.addShow("Performance B1", dateTime("01-01-2010 10:00"), duration("1:00"));
stageBday1.addShow("Performance B2", dateTime("01-01-2010 11:30"), duration("1:00"));
stageBday1.addShow("Performance B3", dateTime("01-01-2010 13:00"), duration("1:00"));
DayProgram stageBday2 = stageB.addDay(dateTime("02-01-2010 0:00"));
stageBday2.addShow("Performance B4", dateTime("02-01-2010 10:00"), duration("1:00"));
Show b5 = stageBday2.addShow("Performance B5", dateTime("02-01-2010 11:30"), duration("1:00"));
Show b6 = stageBday2.addShow("Performance B6", dateTime("02-01-2010 13:00"), duration("2:00"));
Show b5new = b5.change(null, dateTime("02-01-2010 15:30"), duration("1:00"));
b6.cancel();
Stage stageC = e.addStage("Stage C");
DayProgram stageCday1 = stageC.addDay(dateTime("01-01-2010 0:00"));
stageCday1.addShow("Performance C1", dateTime("01-01-2010 10:00"), duration("1:00"));
stageCday1.addShow("Performance C2", dateTime("01-01-2010 11:30"), duration("1:00"));
stageCday1.addShow("Performance C3", dateTime("01-01-2010 13:00"), duration("1:00"));
return e;