SchoolEssence schoolEssence = UtilsForTestCases
.createValidSchoolEssence();
School school = schoolEssence.createSchool();
this.schoolDAO.save(school);
AcademicYear academicYear = new AcademicYear("2005-2006", school,
startDate, endDate, "active");
academicYearDAO.save(academicYear);
Standard standard = new Standard("1st standard", academicYear);
Set<Standard> setOfStds = new HashSet<Standard>();
setOfStds.add(standard);
academicYear.setStandards(setOfStds);
standardDAO.save(standard);
List<Standard> listOfStds = standardDAO
.getByStandardName("1st standard");
assertEquals(1, listOfStds.size());