public void testOutput() throws IOException {
Map<Test, MarathonTestResult> testOutputMap = new HashMap<Test, MarathonTestResult>();
TestSuite suite = (TestSuite) new TestCreator(false, new StdOutConsole()).getTest("AllTests");
createResult(suite, testOutputMap);
StringWriter writer = new StringWriter();
TextOutputter outputter = new TextOutputter();
outputter.output(writer, suite, testOutputMap);
String actual = writer.toString();
String expected = "TestSuite: AllTests\n" + "Tests run: 4, Failures: 1, Errors: 1, Time elapsed: 141.602 seconds\n\n"
+ "Testcase: subtest1 Passed\n" + " took 0 seconds\n\n" + "Testcase: subtest2 FAILED\n" + "Runtime Exception\n"
+ BaseTestRunner.getFilteredTrace(exception) + " took 0.102 seconds\n\n"
+ "Testcase: testcase1 Caused an ERROR\n" + "Runtime Exception\n" + BaseTestRunner.getFilteredTrace(exception)