em.getTransaction().begin();
sm.create(sub);
em.getTransaction().commit();
assertEquals(SubmissionStatus.New, sm.getAssignmentStatus(assign, group));
Comment com = new Comment(u2, "Total katastrof! Bara Christopher kan rädda dig nu");
sub.addComments(com);
sub.addFile(new StoredFile("Hacker.java", text, "text/plain"));
Submission sub2 = sm.read(sub.getId());