* @param languages a list of languages
* @return a new Problem instance
*/
private ExtendedSubmission newSubmission(
long id, long problemId, long userId, Language language, JudgeReply reply) {
ExtendedSubmission submission = new ExtendedSubmission();
submission.setId(id);
submission.setUserProfileId(userId);
submission.setProblemId(problemId);
submission.setLanguage(language);
submission.setJudgeReply(reply);
submission.setContent("contest" + id);
submission.setTimeConsumption((int) id * 10);
submission.setMemoryConsumption((int) id * 100);
submission.setSubmitDate(new Date(id * 10000));
submission.setJudgeDate(new Date(id * 20000));
submission.setJudgeComment("comment" + id);
return submission;
}