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();
XMLOutputter outputter = new XMLOutputter();
outputter.output(writer, suite, testOutputMap);
String actual = writer.toString();
String expected = "<?xml version=\"1.0\" ?>\n" + "<test projectname='' reportdir='testDir' >\n"
+ "<testsuite name=\"AllTests\" >\n" + " <testsuite name=\"subdir.AllTests\" >\n"
+ " <testcase name=\"subtest1\" status=\"0\" time=\"0\" >\n" + " </testcase>\n"
+ " <testcase name=\"subtest2\" status=\"2\" time=\"0.102\" >\n<![CDATA["