public void test_WriteSBML_FunctionDefinition_withSBO()
 {
     string expected = "<functionDefinition sboTerm=\"SBO:0000064\" id=\"pow3\">\n" +
     "  <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n" +
     "    <lambda>\n" +
     "      <bvar>\n" +
     "        <ci> x </ci>\n" +
     "      </bvar>\n" +
     "      <apply>\n" +
     "        <power/>\n" +
     "        <ci> x </ci>\n" +
     "        <cn type=\"integer\"> 3 </cn>\n" +
     "      </apply>\n" +
     "    </lambda>\n" +
     "  </math>\n" +
     "</functionDefinition>";
       FunctionDefinition fd = new FunctionDefinition ( 2,4 );
       fd.setId("pow3");
       fd.setMath(libsbml.parseFormula("lambda(x, x^3)"));
       fd.setSBOTerm(64);
       assertEquals( true, equals(expected,fd.toSBML()) );
 }
 public void test_internal_consistency_check_99911_fd()
 {
     SBMLDocument d = new SBMLDocument(2,4);
       long errors;
       Model m = d.createModel();
       FunctionDefinition fd = new FunctionDefinition(2,4);
       d.setLevelAndVersion(2,1,false);
       fd.setId("fd");
       fd.setSBOTerm(2);
       m.addFunctionDefinition(fd);
       errors = d.checkInternalConsistency();
       assertTrue( errors == 0 );
       d = null;
 }