MockTransactionReportManager transactionManager = (MockTransactionReportManager) lookup(ReportManager.class,
"transaction");
String xml = Files.forIO().readFrom(TransactionAnalyzerTest.class.getResourceAsStream("transaction_real.xml"),
"utf-8");
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");