public void test_WriteSBML_Event_delayWithSBO()
 {
     string expected = "<event id=\"e\">\n" +
     "  <delay sboTerm=\"SBO:0000064\">\n" +
     "    <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n" +
     "      <cn type=\"integer\"> 5 </cn>\n" +
     "    </math>\n" +
     "  </delay>\n" +
     "</event>";
       D.setLevelAndVersion(2,3,false);
       Event e = D.createModel().createEvent();
       e.setId("e");
       ASTNode node = libsbml.parseFormula("5");
       Delay d = new Delay ( 2,3 );
       d.setMath(node);
       d.setSBOTerm(64);
       e.setDelay(d);
       assertEquals( true, equals(expected,e.toSBML()) );
 }
 public void test_internal_consistency_check_99905_delay()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Delay delay = new Delay(2,4);
       Event e = new Event(2,4);
       Model m = d.createModel();
       d.setLevelAndVersion(2,2,false);
       delay.setSBOTerm(5);
       e.setDelay(delay);
       m.addEvent(e);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }