TransactionReport transactionReport = transactionDelegate.parseXml(xml);
rebuildTransactionReport(transactionReport);
transactionManager.setReport(transactionReport);
ProblemAnalyzer problemAnalyzer = (ProblemAnalyzer) lookup(MessageAnalyzer.class, ProblemAnalyzer.ID);
ProblemDelegate problemDelegate = (ProblemDelegate) lookup(ReportDelegate.class, "problem");
MockProblemReportManager problemManager = (MockProblemReportManager) lookup(ReportManager.class, "problem");
xml = Files.forIO().readFrom(ProblemAnalyzerTest.class.getResourceAsStream("problem-report.xml"), "utf-8");
ProblemReport problemReport = problemDelegate.parseXml(xml);
problemManager.setReport(problemReport);
m_analyzer = (TopAnalyzer) lookup(MessageAnalyzer.class, TopAnalyzer.ID);
m_analyzer.setTransactionAnalyzer(transactionAnalyzer);