// Load the same graph again from the file, saves it, and compare them.
XmlElement workflowElement = XMLUtil.loadXML(workflowFile);
Workflow workflow2 = new Workflow(workflowElement);
File workflowFile2 = new File(this.temporaryDirectory,
"web-complex-math-2.xwf");
XMLUtil.saveXML(workflow2.toXML(), workflowFile2);
String workflowFileString = IOUtil.readFileToString(workflowFile);
String workflowFile2String = IOUtil.readFileToString(workflowFile2);
assertEquals(workflowFileString, workflowFile2String);