protected static EntityManager entityManager;
@Before
public void setup() throws Exception {
monitor = new UploadMonitorImpl();
monitor.dao = new AbstractDAO() {
@Override
protected EntityManager getEntityManager() {
return UploadMonitorImplTest.entityManager;
}
};