System.out.println("getNumVersionsOfGradedEvent");
assertTrue(instance.isOpen());
CourseDAO courseDAO = new CourseDAO(testDb.getConnection());
Course course = courseDAO.find(1L);
GradedEvent assignment = new GradedEvent();
assignment.setCourse(course);
assignment.setTerm("Summer 2010");
assignment.setAssignment("PEX2");
assignment.setVersion("ALL");
int expResult = 2;
int result = instance.getNumVersionsOfGradedEvent(assignment);
assertEquals(expResult, result);
assignment.setAssignment("PEX1");
result = instance.getNumVersionsOfGradedEvent(assignment);
expResult = 1;
assertEquals(expResult, result);
assertTrue(instance.isOpen());