AssignmentManager am = new AssignmentManager();
am.setEntityManager(em);
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();
Assignment assign2 = am.read(assign.getId());
assertEquals(assign, assign2);
}