m_currentDocument = m_currentTestCase.getDocument();
m_currentTestCase.initializeDocument();
m_currentTestCase.verifyInitialDocumentState();
final XUndoManager undoManager = getUndoManager();
undoManager.clear();
assertFalse( "clearing the Undo manager should result in the impossibility to undo anything", undoManager.isUndoPossible() );
assertFalse( "clearing the Undo manager should result in the impossibility to redo anything", undoManager.isRedoPossible() );
m_undoListener = new UndoListener();
undoManager.addUndoManagerListener( m_undoListener );