* @throws Exception to JUnit
*/
public void testGetAllContests() throws Exception {
List contests = persistence.getAllContests();
assertEquals("wrong size", 2, contests.size());
Contest contest = (Contest) contests.get(0);
checkAbstractContest(contest1, contest);
assertEquals("wrong start time", contest.getStartTime(), contest1.getStartTime());
assertEquals("wrong end time", contest.getEndTime(), contest1.getEndTime());
contest = (Contest) contests.get(1);
checkAbstractContest(contest2, contest);
assertEquals("wrong start time", contest.getStartTime(), contest2.getStartTime());
assertEquals("wrong end time", contest.getEndTime(), contest2.getEndTime());
}