@Test
public void testProcess() throws Exception {

	for (int i = 1; i <= 100; i++) {
		MessageTree tree = generateMessageTree(i);
		m_analyzer.process(tree);
	}
	MatrixReport report = m_analyzer.getReport(m_domain);
	String expected = Files.forIO().readFrom(getClass().getResourceAsStream("matrix_analyzer.xml"), "utf-8");
	//Assert.assertEquals(expected.replaceAll("\r", ""), report.toString().replaceAll("\r", ""));
	
	MatrixReport expected4report = com.dianping.cat.consumer.matrix.model.transform.DefaultSaxParser.parse(expected);
	Assert.assertTrue(TestHelper.isEquals(expected4report,report));
}