Index: trunk/quest-plugin-mfc-test/src/test/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParserTest.java
===================================================================
--- trunk/quest-plugin-mfc-test/src/test/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParserTest.java	(revision 622)
+++ trunk/quest-plugin-mfc-test/src/test/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParserTest.java	(revision 649)
@@ -14,5 +14,7 @@
 import java.io.File;
 import java.io.FileInputStream;
+import java.io.FileOutputStream;
 import java.io.InputStreamReader;
+import java.io.PrintStream;
 import java.util.Collection;
 import java.util.List;
@@ -25,6 +27,6 @@
 import de.ugoe.cs.quest.eventcore.Event;
 import de.ugoe.cs.quest.eventcore.guimodel.GUIModel;
-import de.ugoe.cs.quest.eventcore.guimodel.IGUIElement;
-import de.ugoe.cs.quest.plugin.mfc.guimodel.MFCGUIElement;
+import de.ugoe.cs.util.console.Console;
+import de.ugoe.cs.util.console.listener.IOutputListener;
 
 /**
@@ -34,9 +36,12 @@
  * @author 2011, last modified by $Author: $
  */
-public class MFCLogParserTest {
+public class MFCLogParserTest implements IOutputListener {
 
     /** */
     private File tmpFile;
     
+    /** */
+    private PrintStream outputStream;
+
     /**
      * 
@@ -44,4 +49,7 @@
     @Before
     public void setUp() throws Exception {
+        outputStream = new PrintStream(new FileOutputStream("blub.log"));
+        Console.getInstance().registerOutputListener(this);
+        
         tmpFile = new File("tmp.xml");
         
@@ -56,4 +64,8 @@
     @After
     public void tearDown() throws Exception {
+        if (!System.out.equals(outputStream) && !System.err.equals(outputStream)) {
+            outputStream.close();
+        }
+        
         if (tmpFile.exists()) {
             assertTrue(tmpFile.delete());
@@ -96,7 +108,5 @@
         assertNotSame(0, guiModel.getRootElements().size());
 
-        for (IGUIElement root : guiModel.getRootElements()) {
-            dumpGUIElement(root, guiModel, "");
-        }
+        guiModel.dump(System.err);
     }
 
@@ -131,7 +141,5 @@
         assertNotNull(guiModel);
 
-        for (IGUIElement root : guiModel.getRootElements()) {
-            dumpGUIElement(root, guiModel, "");
-        }
+        guiModel.dump(System.err);
 
         ReplayGenerator generator = new ReplayGenerator();
@@ -157,30 +165,10 @@
     }
 
-    /**
-     * TODO: comment
-     * 
-     * @param root
-     * @param guiModel
+    /* (non-Javadoc)
+     * @see de.ugoe.cs.util.console.listener.IOutputListener#outputMsg(java.lang.String)
      */
-    private void dumpGUIElement(IGUIElement guiElement, GUIModel guiModel, String indent) {
-        assertTrue(guiElement instanceof MFCGUIElement);
-
-        System.err.print(indent);
-        System.err.print(guiElement);
-
-        List<IGUIElement> children = guiModel.getChildren(guiElement);
-
-        if ((children != null) && (children.size() > 0)) {
-            System.err.println(" {");
-
-            for (IGUIElement child : children) {
-                dumpGUIElement(child, guiModel, indent + "  ");
-            }
-
-            System.err.print(indent);
-            System.err.print("}");
-        }
-
-        System.err.println();
+    @Override
+    public void outputMsg(String newMessage) {
+        outputStream.println(newMessage);
     }
 
