assertEquals("allresults", testsuite.getName());
assertEquals(1, testsuite.getErrors());
assertEquals(13, testsuite.getTests());
assertEquals(7, testsuite.getFailures());
JunitresultDomSerializer serializer = new JunitresultDomSerializer();
File outputDir = TestDataProvider.getTestFile(new Path("output/"));
File output = new File(outputDir, "sample_result.xml");
if(!output.exists())
output.createNewFile();
serializer.serialize(result, new FileOutputStream(output));
}