DocumentManager docManager = null;
try {
docManager = (DocumentManager) getManager().lookup(DocumentManager.ROLE);
Document target = doc.getFactory().get(doc.getPublication(), doc.getArea(), "/testTarget", doc.getLanguage());
docManager.move(doc, target.getLocator());
assertFalse(listener.wasRemoved());
doc.getRepositoryNode().getSession().commit();
Thread.currentThread().sleep(100);
assertTrue(listener.wasRemoved());