public void testGetGraphByID() {
BufferedReader reader = new BufferedReader( new InputStreamReader(
getClass().getClassLoader().getResourceAsStream(
"org/apache/agila/LeaveApplication.xml" ) ) );
BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );
BusinessProcessID businessProcessID = dao.addGraph(
businessProcess );
BusinessProcess bpFromQuery = dao.getGraphByID( businessProcessID );
assertEquals( businessProcessID, bpFromQuery.getBusinessProcessID() );
assertEquals( businessProcess.getName(), bpFromQuery.getName() );
assertEquals( businessProcess.getGraphAsXML(), bpFromQuery.getGraphAsXML() );
}