publishDate = new Date(academicSession.getStartDate().getTime() - numDaysBeforeTermStarts * ONE_DAY_IN_MS);
CourseOffering co1 = cmAdmin.createCourseOffering(CO1_PREFIX + as.getEid(), CC1, "Sample course offering #1, " + as.getEid(), "open", as.getEid(), CC1, as.getStartDate(), as.getEndDate()); CourseOffering co2 = cmAdmin.createCourseOffering(CO2_PREFIX + as.getEid(), CC2, "Sample course offering #2, " + as.getEid(), "open", as.getEid(), CC2, as.getStartDate(), as.getEndDate());