Assert.assertEquals(m_orginalContent.replaceAll("\r", ""), m_manager.getConfig().toString().replaceAll("\r", ""));
}
@Test
public void testBuildNodeStateByError(){
Index index = new Index("URL");
index.setAvg(40.0);
index.setErrorCount(50);
index.setSum(1000.0);
index.setTotalCount(100);
Pair<Integer, String> state = m_manager.buildNodeState("cat", index);
Assert.assertEquals(GraphConstrant.OK, (int)state.getKey());
index.setErrorCount(100);
state = m_manager.buildNodeState("cat", index);
Assert.assertEquals(GraphConstrant.WARN, (int)state.getKey());
index.setErrorCount(200);
state = m_manager.buildNodeState("cat", index);
Assert.assertEquals(GraphConstrant.ERROR, (int)state.getKey());
}