.getAssociatedCurricularCourseScope(), 0); assertEquals("Invalid RoomOccupations Count!", exam.getAssociatedRoomOccupation(), 0);
.getAssociatedCurricularCourseScope().size(), 0); assertEquals("Invalid RoomOccupations Count!", exam.getAssociatedRoomOccupation().size(), 0);
    public void testDelete() {        try {            exam.delete();            fail("Expected DomainException: 'Exam' has ExamRoomStudents.");        } catch (DomainException e) {            assertEquals("Invalid ExamStudentRooms Count!", exam.getWrittenEvaluationEnrolmentsCount(), 1);            assertEquals("Invalid ExecutionCourses Count!", exam.getAssociatedExecutionCoursesCount(), 2);            assertEquals("Invalid CurricularCoursesScope Count!", exam                    .getAssociatedCurricularCourseScopeCount(), 1);            assertEquals("Invalid RoomOccupations Count!", exam.getAssociatedRoomOccupationCount(), 2);        }        exam.getWrittenEvaluationEnrolments().clear();        try {            exam.delete();            assertEquals("Invalid ExamStudentRooms Count!", exam.getWrittenEvaluationEnrolmentsCount(), 0);            assertEquals("Invalid ExecutionCourses Count!", exam.getAssociatedExecutionCoursesCount(), 0);            assertEquals("Invalid CurricularCoursesScope Count!", exam                    .getAssociatedCurricularCourseScope(), 0);            assertEquals("Invalid RoomOccupations Count!", exam.getAssociatedRoomOccupation(), 0);        } catch (DomainException e) {            fail("Unexpected DomainException: 'Exam' should have been deleted.");        }    }