@Test
public void testProcess() throws Exception {

	for (int i = 1; i <= 1000; i++) {
		MessageTree tree = ((DefaultMessageTree) generateMessageTree(i)).copyForTest();
		m_analyzer.process(tree);
	}
	TransactionReport report = m_analyzer.getReport(m_domain);
	report.accept(new TransactionStatisticsComputer());
	String expected = Files.forIO().readFrom(getClass().getResourceAsStream("transaction_analyzer.xml"), "utf-8");
	Assert.assertTrue( TestHelper.isEquals(com.dianping.cat.consumer.transaction.model.transform.DefaultSaxParser.parse(expected), report));
}