@Test
public void testingSubmissions() {
// Create the managers
AssignmentManager am = new AssignmentManager();
am.setEntityManager(em);
SubmissionManager sm = new SubmissionManager();
sm.setEntityManager(em);
UserManager um = new UserManager();
um.setEntityManager(em);
GroupManager gm = new GroupManager();
gm.setEntityManager(em);
CommentManager cm = new CommentManager();
cm.setEntityManager(em);
// Fix assignment
Assignment assign = new Assignment.Builder()
.title("Ratnum labb")
.information("Programmera RatNum labben ordentligt annars kommer Christopher.")
.finalDeadline(new Date(Calendar.getInstance().getTime().getTime()+15000))
.firstDeadline(new Date(Calendar.getInstance().getTime().getTime()+10000))
.build();
em.getTransaction().begin();
am.create(assign);
em.getTransaction().commit();
// Fix users
FireUser u = TestUtil.createRandomUser();