* Tests searchSubmissions method
* @throws Exception to JUnit
*/
public void testSearchSubmissions7() throws Exception {
List submissions = null;
SubmissionCriteria criteria = new SubmissionCriteria();
criteria.setJudgeReplies(Arrays.asList(new Object[] {judgeReply1, judgeReply3}));
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(Arrays.asList(new Object[] {submission1, submission3}), submissions);
criteria.setJudgeReplies(Arrays.asList(new Object[] {judgeReply2}));
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(Arrays.asList(new Object[] {submission2, submission4}), submissions);
criteria.setJudgeReplies(Arrays.asList(new Object[] {
new JudgeReply(4, "x", "x", "x", true)}));
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(new ArrayList(), submissions);
criteria.setJudgeReplies(new ArrayList());
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(new ArrayList(), submissions);
}